1
0
Fork 0

For #6881 Choose visible view when multiple views have same label text

master
mcarare 2019-12-02 11:33:14 +02:00 committed by Emily Kager
parent 715a79de71
commit 22879b533e
1 changed files with 4 additions and 2 deletions

View File

@ -174,7 +174,8 @@ private fun threeDotMenuRecyclerViewExists() {
onView(withId(R.id.mozac_browser_menu_recyclerView)).check(matches(isDisplayed()))
}
private fun settingsButton() = onView(allOf(withText(R.string.settings)))
private fun settingsButton() = onView(allOf(withText(R.string.settings),
withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
private fun assertSettingsButton() = settingsButton()
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
@ -255,6 +256,7 @@ private fun ShareALinkTitle() =
private fun assertShareALinkTitle() = ShareALinkTitle()
private fun whatsNewButton() = onView(allOf(withText("What's New")))
private fun whatsNewButton() = onView(allOf(withText("What's New"),
withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
private fun assertWhatsNewButton() = whatsNewButton()
.check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))