commit 5e3f4c98972f3d0c820bd72900d271ef4fad5e09
parent ebfba9ae402e48be88128ad9132d21129210113e
Author: AndiAJ <andiaj@users.noreply.github.com>
Date: Thu, 6 Nov 2025 14:20:17 +0000
Bug 1978082 - Fix removeLastTabFromCollectionUsingSwipeActionTest UI test r=aaronmt
The UI test was flaky because the collections tab wasn't swipe closed properly.
I've reduced the the speed of the swipe (after a bit of research 200 - 400 is the sweet spot).
**removeLastTabFromCollectionUsingSwipeActionTest** successfully passed 50x on Firebase ✅
**removeTabFromCollectionUsingSwipeRightActionTest** successfully passed 50x on Firebase ✅
Differential Revision: https://phabricator.services.mozilla.com/D271576
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt
@@ -227,14 +227,14 @@ class CollectionRobot {
fun swipeTabLeft(title: String) {
Log.i(TAG, "swipeTabLeft: Trying to swipe left the collections tab with title: $title")
- mDevice.findObject(By.textContains(title)).swipe(Direction.LEFT, 1.0f, 1000)
+ mDevice.findObject(By.textContains(title)).swipe(Direction.LEFT, 1.0f, 200)
Log.i(TAG, "swipeTabLeft: Swiped left the collections tab with title: $title")
waitForAppWindowToBeUpdated()
}
fun swipeTabRight(title: String) {
Log.i(TAG, "swipeTabRight: Trying to swipe right the collections tab with title: $title")
- mDevice.findObject(By.textContains(title)).swipe(Direction.RIGHT, 1.0f, 1000)
+ mDevice.findObject(By.textContains(title)).swipe(Direction.RIGHT, 1.0f, 200)
Log.i(TAG, "swipeTabRight: Swiped right the collections tab with title: $title")
waitForAppWindowToBeUpdated()
}