mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
Fix for ambiguous mozac_browser_tabstray_close and with content description
This commit is contained in:
parent
66ac309d40
commit
c9ca6f01b5
@ -375,13 +375,13 @@ private fun tabMediaControlButton() = onView(withId(R.id.play_pause_button))
|
|||||||
private fun closeTabButton() =
|
private fun closeTabButton() =
|
||||||
mDevice.findObject(UiSelector().resourceId("$packageName:id/mozac_browser_tabstray_close"))
|
mDevice.findObject(UiSelector().resourceId("$packageName:id/mozac_browser_tabstray_close"))
|
||||||
private fun assertCloseTabsButton(title: String) =
|
private fun assertCloseTabsButton(title: String) =
|
||||||
onView(
|
assertTrue(
|
||||||
allOf(
|
mDevice.findObject(
|
||||||
withId(R.id.mozac_browser_tabstray_close),
|
UiSelector()
|
||||||
withContentDescription("Close tab $title")
|
.resourceId("$packageName:id/mozac_browser_tabstray_close")
|
||||||
|
.descriptionContains("Close tab $title")
|
||||||
|
).waitForExists(waitingTime)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
|
||||||
|
|
||||||
private fun normalBrowsingButton() = onView(
|
private fun normalBrowsingButton() = onView(
|
||||||
anyOf(
|
anyOf(
|
||||||
|
Loading…
Reference in New Issue
Block a user