From 263e4d819be3b67c037917237f55050f3c09b8c9 Mon Sep 17 00:00:00 2001 From: sv-ohorvath Date: Mon, 25 Jul 2022 17:59:09 +0300 Subject: [PATCH] Issue #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()