1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Add option to control screen resetting on device release

This commit is contained in:
Piotr Orzechowski 2018-03-07 11:11:27 +01:00
parent 4463fe139c
commit e8db600878
4 changed files with 25 additions and 2 deletions

View file

@ -104,8 +104,10 @@ module.exports = syrup.serial()
})
plugin.on('leave', function() {
service.pressKey('home')
service.thawRotation()
if (options.screenReset) {
service.pressKey('home')
service.thawRotation()
}
service.releaseWakeLock()
})