gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

feat: set default browser orientation before each test #927

Closed Flackus closed 6 years ago

Flackus commented 6 years ago

Current solution for restoring orientation may fail – namely, when test times out. Setting orientation before the test run seems more reliable.

Frankly, we should also remove restoring orientation in postActions when the related option is configured, but that can lead to some unfortunate consequences – as all projects can't be updated simultaneously – device may occur in unexpected state. Before doing so, runner should be updated and default orientation should be set in all projects. Just making these changes major do not make the transition easier.

Point for discussion – should gemini throw when trying to set default orientation for browser which has no such capability.