From 558f90da009f9d284a28276139984536538a59d8 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Thu, 12 Dec 2019 12:00:02 -0800 Subject: [PATCH] No issue: Scroll to remote debugging text in UI Tests (#7117) --- .../java/org/mozilla/fenix/ui/robots/SettingsRobot.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 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 9b3b14dc6..2e090eb84 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 @@ -199,8 +199,11 @@ private fun assertDeveloperToolsHeading() { .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) } -private fun assertRemoteDebug() = onView(ViewMatchers.withText("Remote debugging via USB")) - .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) +private fun assertRemoteDebug() { + TestHelper.scrollToElementByText("Remote debugging via USB") + onView(ViewMatchers.withText("Remote debugging via USB")) + .check(matches(withEffectiveVisibility(Visibility.VISIBLE))) +} // ABOUT SECTION private fun assertAboutHeading() {