No issue: re-enabled swipeToSwitchTabTest

This commit is contained in:
Oana Horvath 2021-09-22 16:16:47 +03:00 committed by mergify[bot]
parent ca069a78d2
commit 83e3e0b19d
2 changed files with 4 additions and 5 deletions

View File

@ -584,7 +584,6 @@ class SmokeTest {
}
}
@Ignore("Will need to check other solutions to properly swipe")
@Test
// Swipes the nav bar left/right to switch between tabs
fun swipeToSwitchTabTest() {

View File

@ -450,10 +450,10 @@ class BrowserRobot {
fun swipeNavBarRight(tabUrl: String) {
// failing to swipe on Firebase sometimes, so it tries again
try {
navURLBar().swipeRight(3)
navURLBar().swipeRight(2)
assertTrue(mDevice.findObject(UiSelector().text(tabUrl)).waitUntilGone(waitingTime))
} catch (e: AssertionError) {
navURLBar().swipeRight(3)
navURLBar().swipeRight(2)
assertTrue(mDevice.findObject(UiSelector().text(tabUrl)).waitUntilGone(waitingTime))
}
}
@ -461,10 +461,10 @@ class BrowserRobot {
fun swipeNavBarLeft(tabUrl: String) {
// failing to swipe on Firebase sometimes, so it tries again
try {
navURLBar().swipeRight(3)
navURLBar().swipeLeft(2)
assertTrue(mDevice.findObject(UiSelector().text(tabUrl)).waitUntilGone(waitingTime))
} catch (e: AssertionError) {
navURLBar().swipeRight(3)
navURLBar().swipeLeft(2)
assertTrue(mDevice.findObject(UiSelector().text(tabUrl)).waitUntilGone(waitingTime))
}
}