|
|
@ -170,8 +170,17 @@ class HomeScreenRobot {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun openThreeDotMenu(interact: ThreeDotMenuMainRobot.() -> Unit): ThreeDotMenuMainRobot.Transition {
|
|
|
|
fun openThreeDotMenu(interact: ThreeDotMenuMainRobot.() -> Unit): ThreeDotMenuMainRobot.Transition {
|
|
|
|
mDevice.waitNotNull(Until.findObject(By.res("$packageName:id/menuButton")), waitingTime)
|
|
|
|
// Issue: https://github.com/mozilla-mobile/fenix/issues/21578
|
|
|
|
threeDotButton().perform(click())
|
|
|
|
try {
|
|
|
|
|
|
|
|
mDevice.waitNotNull(
|
|
|
|
|
|
|
|
Until.findObject(By.res("$packageName:id/menuButton")),
|
|
|
|
|
|
|
|
waitingTime
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
} catch (e: AssertionError) {
|
|
|
|
|
|
|
|
mDevice.pressBack()
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
threeDotButton().perform(click())
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ThreeDotMenuMainRobot().interact()
|
|
|
|
ThreeDotMenuMainRobot().interact()
|
|
|
|
return ThreeDotMenuMainRobot.Transition()
|
|
|
|
return ThreeDotMenuMainRobot.Transition()
|
|
|
|