sergio-sastre / AndroidUiTestingUtils

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

LocaleTestRule for in-app locale preference, does not reset correctly #18

Closed sergio-sastre closed 1 year ago

sergio-sastre commented 1 year ago

Describe the bug LocaleTestRule does not reset correctly. It happens, for example, if the app has no in-app language set. After the test execution, the System Language is set as in-app locale pref instead. This may affect the rest of the tests, since the in-app local has preference over the System Locale.

Environment The setup in which the bug is reproducible:

Expected behavior The in-app locale is properly reset

sergio-sastre commented 1 year ago

Fix in 1.2.2