From 59482819e730f9afdf64114c0ccb0a4f855e40ae Mon Sep 17 00:00:00 2001 From: AndiAJ Date: Thu, 3 Aug 2023 15:16:09 +0300 Subject: [PATCH] Bug 1818183 - Fix verifyOpenTopSiteNormalTab UI test on legacy devices --- .../java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt index e41794f3f2..737c74e4df 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -948,8 +948,7 @@ private fun assertHomeComponent() = private fun threeDotButton() = onView(allOf(withId(R.id.menuButton))) private fun assertExistingTopSitesList() = - onView(allOf(withId(R.id.top_sites_list))) - .check((matches(withEffectiveVisibility(Visibility.VISIBLE)))) + assertItemWithResIdExists(itemWithResId("$packageName:id/top_sites_list")) private fun assertExistingTopSitesTabs(title: String) { mDevice.findObject(