sergio-sastre / AndroidUiTestingUtils

A set of TestRules, ActivityScenarios and utils to facilitate UI and screenshot testing under given configurations: FontSizes, Locales...
MIT License
285 stars 14 forks source link

FontSizeTestRule and DisplaySizeTestRule do not reset properly if error thrown #105

Closed sergio-sastre closed 4 months ago

sergio-sastre commented 4 months ago

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:

Expected behavior If something goes wrong during the test execution, the initial value before the test should be correctly reset

sergio-sastre commented 4 months ago

Fixed in 2.2.1