No issue: re-enabled swipeToSwitchTabTest

upstream-sync
Oana Horvath 3 years ago committed by mergify[bot]
parent ca069a78d2
commit 83e3e0b19d

@ -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() {

@ -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))
}
}

Loading…
Cancel
Save