Skip to content

Commit

Permalink
Test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Nov 22, 2023
1 parent d9e7f96 commit 59fe2e7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -88,7 +88,7 @@ public void teardown() {
* Start prefs, advanced prefs, app locale
*/
@Test
public void setToGerman() {
public void setToEnglishUS() {
monitor = instrumentation.addMonitor(PrefEditor.class.getName(), null, false);
assertTrue(TestUtils.clickButton(device, device.getCurrentPackageName() + ":id/menu_config", true));
instrumentation.waitForMonitorWithTimeout(monitor, 40000); //
Expand All @@ -113,8 +113,8 @@ public void setToGerman() {
UiObject2 deviceLangCheck = TestUtils.findObjectWithText(device, false, main.getString(R.string.config_appLocale_device_language), 500, false);
assertTrue(deviceLangCheck.isChecked());

TestUtils.scrollTo(Locale.GERMAN.getDisplayName(Locale.getDefault()), false);
UiObject2 german = TestUtils.findObjectWithText(device, false, Locale.GERMAN.getDisplayName(Locale.getDefault()), 500, false);
TestUtils.scrollTo(Locale.US.getDisplayName(Locale.getDefault()), false);
UiObject2 german = TestUtils.findObjectWithText(device, false, Locale.US.getDisplayName(Locale.getDefault()), 500, false);
assertFalse(german.isChecked());
german.click();

Expand Down

0 comments on commit 59fe2e7

Please sign in to comment.