From 03efa1f59b5ee67d33fccae09b1cf7d1ee2fdd4a Mon Sep 17 00:00:00 2001 From: AndiAJ Date: Tue, 13 Dec 2022 14:08:07 +0200 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/28165 fix showDefaultHomeScreen screenshot UI test --- .../java/org/mozilla/fenix/ui/robots/HomeScreenRobot.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 f875695858..aabc9e7ce9 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 @@ -194,7 +194,10 @@ class HomeScreenRobot { // First Run elements fun verifyWelcomeHeader() = assertItemContainingTextExists(welcomeHeader) - fun verifyAccountsSignInButton() = assertItemWithResIdExists(signInButton) + fun verifyAccountsSignInButton() { + scrollToElementByText(getStringResource(R.string.onboarding_account_sign_in_header)) + assertItemWithResIdExists(signInButton) + } fun verifyStartBrowsingButton() { scrollToElementByText(getStringResource(R.string.onboarding_finish)) assertItemWithResIdExists(startBrowsingButton)