tor-browser

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

commit 2a9e3a93714da283bd348a78f52068e77d36c78e
parent 03b625821523497a28e4ee2805adbde1ef204718
Author: AndiAJ <andiaj@users.noreply.github.com>
Date:   Thu, 27 Nov 2025 14:25:10 +0000

Bug 1995706 - Fix verifyStateFieldUpdatesInAccordanceWithCountryFieldTest UI test r=aaronmt

The UI test was flaky because it couldn't click properly with the "country" dropdown because the keyboard remained displayed.
Added a couple of 1s waits for the app window to be updated for better syncing after opening the "Add address" section and after dismissing the keyboard.

The UI test successfully passed 100x on Firebase ✅

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

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

diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAutofillRobot.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAutofillRobot.kt @@ -281,6 +281,7 @@ class SettingsSubMenuAutofillRobot(private val composeTestRule: ComposeTestRule) Log.i(TAG, "clickAddAddressButton: Trying to click the \"Add address\" button") addAddressButton().click() Log.i(TAG, "clickAddAddressButton: Clicked the \"Add address\" button") + waitForAppWindowToBeUpdated() } fun clickManageAddressesButton() { Log.i(TAG, "clickManageAddressesButton: Trying to click the \"Manage addresses\" button") @@ -329,6 +330,7 @@ class SettingsSubMenuAutofillRobot(private val composeTestRule: ComposeTestRule) Log.i(TAG, "clickCountryDropdown: Trying to close the keyboard.") closeSoftKeyboard() Log.i(TAG, "clickCountryDropdown: Closed the keyboard.") + waitForAppWindowToBeUpdated() Log.i(TAG, "clickCountryDropdown: Trying to click \"Country or region\" dropdown") composeTestRule.countryDropDown().performClick() Log.i(TAG, "clickCountryDropdown: Clicked \"Country or region\" dropdown")