commit c861b5d4c860af33f5614f23e2ddd1fdebbda46e
parent 80ba593230e71c860024cfe194dfa2558cad63c6
Author: AndiAJ <andiaj@users.noreply.github.com>
Date: Wed, 1 Oct 2025 15:34:04 +0000
Bug 1920864 - Fix installPWAFromTheMainMenuTest UI test r=aaronmt
The UI test was flaky because the "Add app to home screen" option wasn't always available in the main menu.
This most likely happened because the page wasn't fully loaded.
To fix this inconsistencies Ive tried improving the sync between the actions by adding some assertions.
The UI test successfully passed 50x on Firebase ✅
Differential Revision: https://phabricator.services.mozilla.com/D266987
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt
@@ -80,6 +80,8 @@ class PwaTest : TestSetup() {
navigationToolbar {
}.enterURLAndEnterToBrowser(pwaPage.toUri()) {
+ waitForPageToLoad()
+ verifyUrl("mozilla-mobile.github.io/testapp/loginForm")
verifyPageContent("Login Form")
}.openThreeDotMenu {
}.clickAddAppToHomeScreen {