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:
parent
4463fe139c
commit
e8db600878
4 changed files with 25 additions and 2 deletions
|
@ -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()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue