commit c520a9586aaeeb63a4d63977e30f96654f969a32
parent b20d5047f4186c827d9617043661895454991039
Author: AndiAJ <andiaj@users.noreply.github.com>
Date: Wed, 24 Dec 2025 10:08:12 +0000
Bug 2007496 - Fix linkWithAndroidFallbackLinkTest UI test r=mcarare
The UI test was flaky when trying to verify the **mozilla.org** URL.
Improved the syncing in between the actions by adding an extra url verification after opening the app links redirect page and after clicking the link.
The UI test successfully passed 100x on Firebase ✅
Differential Revision: https://phabricator.services.mozilla.com/D277502
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/AppLinksTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/AppLinksTest.kt
@@ -26,6 +26,7 @@ import org.mozilla.fenix.helpers.TestAssetHelper
import org.mozilla.fenix.helpers.TestAssetHelper.appLinksRedirectAsset
import org.mozilla.fenix.helpers.TestAssetHelper.getGenericAsset
import org.mozilla.fenix.helpers.TestHelper.mDevice
+import org.mozilla.fenix.helpers.TestHelper.waitForAppWindowToBeUpdated
import org.mozilla.fenix.helpers.TestSetup
import org.mozilla.fenix.helpers.perf.DetectMemoryLeaksRule
import org.mozilla.fenix.ui.robots.clickPageObject
@@ -411,8 +412,9 @@ class AppLinksTest : TestSetup() {
navigationToolbar(composeTestRule) {
}.enterURLAndEnterToBrowser(externalLinksPage.url) {
+ verifyUrl(externalLinksPage.url.toString())
clickPageObject(composeTestRule, linkWithAndroidFallbackLink)
- mDevice.waitForIdle()
+ waitForPageToLoad()
verifyUrl("mozilla.org")
}
}