From 8ab6826d4a40a1cabcaf8155f4cfcd417acdb864 Mon Sep 17 00:00:00 2001 From: "oana.horvath" Date: Tue, 27 Dec 2022 11:42:57 +0200 Subject: [PATCH] No issue: Fix add-on name check in UI test --- .../java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt index df9c99848..5a0e458ed 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/ThreeDotMenuMainRobot.kt @@ -137,8 +137,8 @@ class ThreeDotMenuMainRobot { for (i in 1..RETRY_COUNT) { try { assertTrue( - "Addon not listed in the Add-ons menu", - mDevice.findObject(UiSelector().text(addonName)).waitForExists(waitingTime), + "Addon not listed in the Add-ons sub-menu", + mDevice.findObject(UiSelector().textContains(addonName)).waitForExists(waitingTime), ) break } catch (e: AssertionError) {