Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
run #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Horvath committed May 13, 2022
1 parent 4e008db commit ddb5673
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ddb5673

Please sign in to comment.