wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.15k stars 1.92k forks source link

setOrientation should rotate device instead of setting orientation on the activity #599

Open guyca opened 6 years ago

guyca commented 6 years ago

The following code sets orientation on the activity, idealy it would roatate the device.

We're using detox in react-native-navigation v2 and would like to test orientation related use cases. in RNN we handle the activity's orientation using the same android api, setRequestedOrientation and detox interferes with our api.

This can be reproduced by running our e2e suite yarn run test-e2e-android-detox

rotemmiz commented 6 years ago

We'll add a new API, device.rotateDevice(), for Android only, to rotate the device itself, outside of the process.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this reporsitory, read this discussion.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.