Bug 1870337 - Update description of the add-on post-install popup

fenix/124.1.0
William Durand 4 months ago committed by mergify[bot]
parent 2aa12bb12a
commit c291a3ab1a

@ -98,7 +98,7 @@ class SettingsSubMenuAddonsManagerRobot {
fun verifyAddonInstallCompleted(addonName: String, activityTestRule: HomeActivityIntentTestRule) { fun verifyAddonInstallCompleted(addonName: String, activityTestRule: HomeActivityIntentTestRule) {
for (i in 1..RETRY_COUNT) { for (i in 1..RETRY_COUNT) {
try { try {
assertUIObjectExists(itemWithText("Okay, Got it"), waitingTime = waitingTimeLong) assertUIObjectExists(itemWithText("OK"), waitingTime = waitingTimeLong)
break break
} catch (e: AssertionError) { } catch (e: AssertionError) {
@ -123,10 +123,10 @@ class SettingsSubMenuAddonsManagerRobot {
fun verifyAddonInstallCompletedPrompt(addonName: String) { fun verifyAddonInstallCompletedPrompt(addonName: String) {
onView( onView(
allOf( allOf(
withText("Okay, Got it"), withText("OK"),
withParent(instanceOf(RelativeLayout::class.java)), withParent(instanceOf(RelativeLayout::class.java)),
hasSibling(withText("$addonName has been added to $appName")), 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")), hasSibling(withText("Allow in private browsing")),
), ),
) )
@ -134,7 +134,7 @@ class SettingsSubMenuAddonsManagerRobot {
} }
fun closeAddonInstallCompletePrompt() { fun closeAddonInstallCompletePrompt() {
onView(withText("Okay, Got it")).click() onView(withText("OK")).click()
} }
fun verifyAddonIsInstalled(addonName: String) { fun verifyAddonIsInstalled(addonName: String) {

Loading…
Cancel
Save