For #16020 Fix Intermittent tests caused by the Menu Button (#17829)

upstream-sync
Andrei Joltan 3 years ago committed by GitHub
parent e1d6fa527c
commit 936966596a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,14 +68,16 @@ class ThreeDotMenuMainTest {
}.openHelp {
verifyHelpUrl()
}.openTabDrawer {
}.openNewTab {
}.dismissSearchBar {
closeTab()
}
homeScreen {
}.openThreeDotMenu {
}.openWhatsNew {
verifyWhatsNewURL()
}.openTabDrawer {
}.openNewTab {
}.dismissSearchBar { }
closeTab()
}
homeScreen {
}.openThreeDotMenu {

@ -309,6 +309,7 @@ class HomeScreenRobot {
}
fun openThreeDotMenu(interact: ThreeDotMenuMainRobot.() -> Unit): ThreeDotMenuMainRobot.Transition {
mDevice.waitNotNull(Until.findObject(By.res("$packageName:id/menuButton")), waitingTime)
threeDotButton().perform(click())
ThreeDotMenuMainRobot().interact()

Loading…
Cancel
Save