tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 349658c0e36a5cb7f2b62e77c60e9d142969f9b4
parent 19d09d987b4c0c5c36f9e173ff7b8ac59af5afd7
Author: Delia Pop <dpop@mozilla.com>
Date:   Wed, 17 Dec 2025 13:33:02 +0000

Bug 1988947 - Fix setAppLanguageDifferentThanSystemLanguageTest UI test r=ajoltan

The UI test was flaky because it was accessing the language list view before it was available and on a different occasion the test failed to access the “Languages” sub menu and opened the “Accessibility” sub menu instead. 
Added a couple of 1s waits for the app window to be updated for better syncing before opening the “Languages” sub-menu and then before accessing the languages list.
The UI test successfully passed 50x on Firebase

Try: [[ https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=169518 | link ]]

Differential Revision: https://phabricator.services.mozilla.com/D276832

Diffstat:
Mmobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsGeneralTest.kt | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsGeneralTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsGeneralTest.kt @@ -105,7 +105,9 @@ class SettingsGeneralTest : TestSetup() { homeScreen { }.openThreeDotMenu { }.openSettings { + waitForAppWindowToBeUpdated() }.openLanguageSubMenu { + waitForAppWindowToBeUpdated() registerAndCleanupIdlingResources( RecyclerViewIdlingResource( activityIntentTestRule.activity.findViewById(R.id.locale_list),