sergio-sastre / AndroidUiTestingUtils

A set of TestRules, ActivityScenarios and utils to facilitate UI and screenshot testing under given configurations: FontSizes, Locales...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sergio-sastre opened this issue · comments

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:

  • Device or Emulator: An<
  • API level: Any
  • AndroidUiTestingUtils version: 1.2.1
  • Affected Component: LocaleTestRule
  • Buggy Configuration: In-app Locale pref

Expected behavior
The in-app locale is properly reset

Fix in 1.2.2