Closed Mejihalimelhik closed 10 months ago
https://developer.android.com/codelabs/android-basics-kotlin-affirmations-test-lists-and-adapters
step 7
this code won't work
onView(withId(R.id.recycler_view)).perform( RecyclerViewActions .scrollTo( withText(R.string.affirmation10) ) )
unless the textview is accessed by hasDescendant( withText(R.string.affirmation10) )
Confirmed, I spent a long time trying to figure this out.
https://developer.android.com/codelabs/android-basics-kotlin-affirmations-test-lists-and-adapters
step 7
this code won't work
onView(withId(R.id.recycler_view)).perform( RecyclerViewActions .scrollTo(
withText(R.string.affirmation10)
)
)
unless the textview is accessed by
hasDescendant( withText(R.string.affirmation10) )