|
|
@ -138,7 +138,7 @@ class TabDrawerRobot {
|
|
|
|
|
|
|
|
|
|
|
|
fun snackBarButtonClick(expectedText: String) {
|
|
|
|
fun snackBarButtonClick(expectedText: String) {
|
|
|
|
mDevice.findObject(
|
|
|
|
mDevice.findObject(
|
|
|
|
UiSelector().resourceId("org.mozilla.fenix.debug:id/snackbar_btn")
|
|
|
|
UiSelector().resourceId("$packageName:id/snackbar_btn")
|
|
|
|
).waitForExists(waitingTime)
|
|
|
|
).waitForExists(waitingTime)
|
|
|
|
onView(allOf(withId(R.id.snackbar_btn), withText(expectedText))).check(
|
|
|
|
onView(allOf(withId(R.id.snackbar_btn), withText(expectedText))).check(
|
|
|
|
matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))
|
|
|
|
matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE))
|
|
|
|