From ddb56737c2b85a01ce0e4219250d0b8dcf559436 Mon Sep 17 00:00:00 2001 From: Oana Horvath Date: Fri, 13 May 2022 16:25:08 +0300 Subject: [PATCH] run #3 --- .../mozilla/fenix/ui/robots/SettingsRobot.kt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsRobot.kt index 4cdff81874d8..ea8ba1384701 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsRobot.kt @@ -571,14 +571,16 @@ private fun rateOnGooglePlayHeading(): UiObject { } private fun aboutFirefoxHeading(): UiObject { - val aboutFirefoxHeading = mDevice.findObject(UiSelector().text("About $appName")) - scrollToElementByText("About $appName") - if (!aboutFirefoxHeading.exists()) { - settingsList().swipeUp(2) - aboutFirefoxHeading.waitForExists(waitingTime) - } - - return aboutFirefoxHeading + // val aboutFirefoxHeading = mDevice.findObject(UiSelector().text("About $appName")) + // scrollToElementByText("About $appName") + // if (!aboutFirefoxHeading.exists()) { + // settingsList().swipeUp(2) + // aboutFirefoxHeading.waitForExists(waitingTime) + // } + // + // return aboutFirefoxHeading + settingsList().scrollToEnd(3) + return mDevice.findObject(UiSelector().text("About $appName")) } fun swipeToBottom() = onView(withId(R.id.recycler_view)).perform(ViewActions.swipeUp())