2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

Bug 1874662 - Fix flaky closeAllTabsTest UI tests

This commit is contained in:
AndiAJ 2024-02-07 11:41:41 +02:00 committed by mergify[bot]
parent bee6feaa0f
commit 95b74cd8c6

View File

@ -144,7 +144,12 @@ class HomeScreenRobot {
}
fun verifyTabCounter(numberOfOpenTabs: String) =
assertUIObjectExists(tabCounter(numberOfOpenTabs))
onView(
allOf(
withId(R.id.counter_text),
withText(numberOfOpenTabs),
),
).check(matches(isDisplayed()))
fun verifyWallpaperImageApplied(isEnabled: Boolean) =
assertUIObjectExists(itemWithResId("$packageName:id/wallpaperImageView"), exists = isEnabled)