FontSizeTestRule and DisplaySizeTestRule do not reset properly if error thrown
Closed this issue · 1 comments
sergio-sastre commented
Describe the bug
If an error happens during the screenshot test, if FontSizeTestRule or DisplaySizeTestRule is used, the initial value is not reset.
This makes the subsequent execution of screenshot tests to have wrong font size and display values, also failing.
Environment
The setup in which the bug is reproducible:
- Device or Emulator: Any
- API level: Any
- AndroidUiTestingUtils version: 2.2.0, likely existing since long time
- Affected Component: FontSizeTestRule and DisplaySizeTestRule
- Buggy Configuration: FontSize, DisplaySize
Expected behavior
If something goes wrong during the test execution, the initial value before the test should be correctly reset
sergio-sastre commented
Fixed in 2.2.1