For #22065 fix flaky privateTabsTrayWithOpenedTabTest UI test (#22068)

Co-authored-by: AndiAJ <andiaj@users.noreply.github.com>
This commit is contained in:
Andrei Joltan 2021-10-21 18:39:49 +03:00 committed by GitHub
parent 560de4f396
commit 3af6abff18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,8 +527,11 @@ private fun assertNormalBrowsingButton() {
}
private fun assertTabThumbnail() {
onView(withId(R.id.mozac_browser_tabstray_thumbnail))
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
assertTrue(
mDevice.findObject(
UiSelector().resourceId("$packageName:id/mozac_browser_tabstray_thumbnail")
).waitForExists(waitingTime)
)
}
private fun tab(title: String) =