Describe the bug
When setting values like orientation via ActivityScenarioActivityRule, sometimes they are not reset properly.
This means, for example, that the next test might start with use the wrong orientation, and its snapshot would be in the wrong orientation, e.g.Landscape instead of Portrait.
It seems this happens because the activityscenario.close() method is not called once the test finishes.
Environment
The setup in which the bug is reproducible:
Device or Emulator: Any
API level: Any, but specially on API 33
AndroidUiTestingUtils version: 1.2.2
Affected Component:ActivityScenarioTestRule
Buggy Configuration: Observed with orientation, but others might be affected too.
Expected behavior
All values should be reset when the test finishes
Describe the bug When setting values like orientation via ActivityScenarioActivityRule, sometimes they are not reset properly. This means, for example, that the next test might start with use the wrong orientation, and its snapshot would be in the wrong orientation, e.g.Landscape instead of Portrait.
It seems this happens because the activityscenario.close() method is not called once the test finishes.
Environment The setup in which the bug is reproducible:
Expected behavior All values should be reset when the test finishes