File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/src/androidTest/kotlin/com/vrem/wifianalyzer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ import androidx.test.espresso.action.Tap
3131import androidx.test.espresso.action.ViewActions.click
3232import androidx.test.espresso.assertion.ViewAssertions.doesNotExist
3333import androidx.test.espresso.assertion.ViewAssertions.matches
34- import androidx.test.espresso.matcher.BoundedMatcher
3534import androidx.test.espresso.contrib.RecyclerViewActions
35+ import androidx.test.espresso.matcher.BoundedMatcher
3636import androidx.test.espresso.matcher.ViewMatchers.hasDescendant
3737import androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom
3838import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
@@ -159,7 +159,10 @@ internal fun selectMenuItem(
159159 onView(isAssignableFrom(Toolbar ::class .java)).check(matches(withToolbarTitle(expectedTitle)))
160160}
161161
162- internal fun scrollToAndVerify (text : String , recyclerViewId : Int = androidx.preference.R .id.recycler_view) {
162+ internal fun scrollToAndVerify (
163+ text : String ,
164+ recyclerViewId : Int = androidx.preference.R .id.recycler_view,
165+ ) {
163166 onView(withId(recyclerViewId))
164167 .perform(RecyclerViewActions .scrollTo<RecyclerView .ViewHolder >(hasDescendant(withText(text))))
165168 onView(withText(text)).check(matches(isDisplayed()))
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ internal class SettingsInstrumentedTest : Runnable {
4040 " Keep screen on" ,
4141 " Country" ,
4242 " Language" ,
43- " Reset"
43+ " Reset" ,
4444 ).forEach { scrollToAndVerify(it) }
4545 }
4646}
You can’t perform that action at this time.
0 commit comments