From c291a3ab1a0d9895dceae6f0d1562b0604df599b Mon Sep 17 00:00:00 2001 From: William Durand Date: Thu, 8 Feb 2024 21:41:43 +0100 Subject: [PATCH] Bug 1870337 - Update description of the add-on post-install popup --- .../fenix/ui/robots/SettingsSubMenuAddonsManagerRobot.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAddonsManagerRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAddonsManagerRobot.kt index 94c5c3f500..7847051388 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAddonsManagerRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAddonsManagerRobot.kt @@ -98,7 +98,7 @@ class SettingsSubMenuAddonsManagerRobot { fun verifyAddonInstallCompleted(addonName: String, activityTestRule: HomeActivityIntentTestRule) { for (i in 1..RETRY_COUNT) { try { - assertUIObjectExists(itemWithText("Okay, Got it"), waitingTime = waitingTimeLong) + assertUIObjectExists(itemWithText("OK"), waitingTime = waitingTimeLong) break } catch (e: AssertionError) { @@ -123,10 +123,10 @@ class SettingsSubMenuAddonsManagerRobot { fun verifyAddonInstallCompletedPrompt(addonName: String) { onView( allOf( - withText("Okay, Got it"), + withText("OK"), withParent(instanceOf(RelativeLayout::class.java)), hasSibling(withText("$addonName has been added to $appName")), - hasSibling(withText("Open it in the menu")), + hasSibling(withText("Access $addonName from the $appName menu.")), hasSibling(withText("Allow in private browsing")), ), ) @@ -134,7 +134,7 @@ class SettingsSubMenuAddonsManagerRobot { } fun closeAddonInstallCompletePrompt() { - onView(withText("Okay, Got it")).click() + onView(withText("OK")).click() } fun verifyAddonIsInstalled(addonName: String) {