From d1d14d59663caf78c2c958ecdf584ab7c409e741 Mon Sep 17 00:00:00 2001 From: sv-ohorvath Date: Mon, 25 Jul 2022 17:59:09 +0300 Subject: [PATCH] [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/25970: wait for homescreen to exist before scrolling --- .../java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt index 083255245e..10633b04d3 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt @@ -393,7 +393,9 @@ class HomeScreenRobot { } fun expandCollection(title: String, rule: ComposeTestRule, interact: CollectionRobot.() -> Unit): CollectionRobot.Transition { + homeScreenList().waitForExists(waitingTime) homeScreenList().scrollToEnd(LISTS_MAXSWIPES) + collectionTitle(title, rule) .assertIsDisplayed() .performClick()