I thought there was already a thread on this, but I can't find it.
Short answer, after about half an hour everything goes to sleep, including the DRLs switching off, but the doors don't lock. I've done it several times, and each time only realised when pressing the door handle button locked the car instead of unlocking it, the next day.
The only time I had real trouble was when I forgot to lock it when it was in a dark multistorey car park hooked up to a destination charger. I was already in the theatre foyer when I realised, and I couldn't make the car lock from the app. I ran back to the car park, where the car was sitting with DRLs blazing. I don't know if I had been away half an hour or not, but I have a crawling suspicion that the fact that the car was on charge might have prevented the lights and the screens going dark.