Closed GarleyApps closed 10 months ago
I think I had the same issue: https://github.com/google-developer-training/android-basics-kotlin-affirmations-app-solution/issues/146
Included a workaround.
I found the solution in issue: #142
El vie., 8 de julio de 2022 10:20 a. m., Peter Bucci < @.***> escribió:
I think I had the same issue:
146
Included a workaround.
— Reply to this email directly, view it on GitHub https://github.com/google-developer-training/android-basics-kotlin-affirmations-app-solution/issues/144#issuecomment-1179210067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZR7UUQ6HNPCNYPMYMHYSLLVTBPNZANCNFSM52XD66DQ . You are receiving this because you authored the thread.Message ID: <google-developer-training/android-basics-kotlin-affirmations-app-solution/issues/144/1179210067 @github.com>
URL of codelab https://developer.android.com/codelabs/android-basics-kotlin-affirmations-test-lists-and-adapters?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fandroid-basics-kotlin-affirmations-test-lists-and-adapters#6
In which task and step of the codelab can this issue be found? Step 7 - at the bottom. last sample code:
onView(withId(R.id.recycler_view)).perform( RecyclerViewActions .scrollTo(
withText(R.string.affirmation10)
)
)
onView(withText(R.string.affirmation10))
.check(matches(isDisplayed())
)
Describe the problem when I try to run the "scroll_to_item()" function, I get the error: androidx.test.espresso.PerformException: Error performing 'scroll RecyclerView to: holder with view: an instance of android.widget.TextView and view.getText() equals string from resource id: <2131623964>' on view 'Animations or transitions are enabled on the target device.
Steps to reproduce?
Versions What version of Android Studio are you using? Android Studio Chipmunk, 2021.2.1 Patch 1
Additional information Include screenshots if they would be useful in clarifying the problem.