Describe the bug
setOrientation in Activity: when using it, it does not rotate back to the initial orientation after the test finished. That means, the next tests might start with the wrong orientation.
Environment
The setup in which the bug is reproducible:
Device or Emulator: Emulator
API level: API 31 at least. Could not reproduce it on API 23,26,27,28 though.
AndroidUiTestingUtils version: 1.0.0
Affected Component: Activity only
Buggy Configuration: Orientation
Expected behavior
After the test where we use setOrientation finishes, the layout orientation returns to the one before the test started.
Describe the bug setOrientation in Activity: when using it, it does not rotate back to the initial orientation after the test finished. That means, the next tests might start with the wrong orientation.
Environment The setup in which the bug is reproducible:
Expected behavior After the test where we use setOrientation finishes, the layout orientation returns to the one before the test started.
Reproducible sample Run Road to effective snapshot testing on API 31.