[fenix] Fix for ambiguous tab_item

pull/600/head
AndiAJ 3 years ago committed by mergify[bot]
parent 822775eb9d
commit 75606a8786

@ -419,9 +419,17 @@ private fun assertExistingOpenTabs(title: String) {
}
}
private fun assertExistingTabList() =
onView(allOf(withId(R.id.tab_item)))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
private fun assertExistingTabList() {
mDevice.findObject(
UiSelector().resourceId("$packageName:id/tabsTray")
).waitForExists(waitingTime)
assertTrue(
mDevice.findObject(
UiSelector().resourceId("$packageName:id/tab_item")
).waitForExists(waitingTime)
)
}
private fun assertNoTabsOpenedText() =
onView(withId(R.id.tab_tray_empty_view))

Loading…
Cancel
Save