Skip to content

Commit

Permalink
For mozilla-mobile#21478 fix flaky verifyOpenTopSiteNormalTab UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiAJ committed Sep 29, 2021
1 parent 53206df commit 0f8e1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/src/androidTest/java/org/mozilla/fenix/ui/TopSitesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,12 @@ class TopSitesTest {
verifyAddToTopSitesButton()
}.addToFirefoxHome {
verifySnackBarText("Added to top sites!")
}.openTabDrawer {
}.openNewTab {
}.dismissSearchBar {
}.goToHomescreen {
verifyExistingTopSitesList()
verifyExistingTopSitesTabs(defaultWebPageTitle)
}.openTopSiteTabWithTitle(title = defaultWebPageTitle) {
verifyUrl(defaultWebPage.url.toString().replace("http://", ""))
}.openTabDrawer {
}.openNewTab {
}.dismissSearchBar {
}.goToHomescreen {
verifyExistingTopSitesList()
verifyExistingTopSitesTabs(defaultWebPageTitle)
}.openContextMenuOnTopSitesWithTitle(defaultWebPageTitle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ class BrowserRobot {
onView(withContentDescription("Home screen"))
.check(matches(isDisplayed()))
.click()
mDevice.waitForIdle()

HomeScreenRobot().interact()
return HomeScreenRobot.Transition()
Expand Down

0 comments on commit 0f8e1bc

Please sign in to comment.