You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing an app with Espresso in a scenario that there is a NestedScrollView and a banner which is CustomPopupView and
it covers the bottom part of the NestedScrollView to tell user some information, and the banner will only show up under some condition. And here comes my problem, when I use Espresso doing scrollTo and click a certain view in that NestedScrollView, it did scroll and the view seems to show up but still covered by the banner which has bigger area than the view to be clicked. So when Espresso perform click, it actually click on the banner view. In the end, the click didn't perform in the way I though.
The text was updated successfully, but these errors were encountered:
Happening also in my case, we have a simple scrollView with several row that act as menu items, then at the bottom there's a BottomNavigationView that partially covers the item that needs to be tap. ScrollTo scrolls to the correct view but being partially covered, the click doesn't have any effect.
Zemotacqy
pushed a commit
to Zemotacqy/android-test
that referenced
this issue
May 5, 2023
This bug is old, but this is also happening with androidx.test.espresso.contrib.RecyclerViewActions.scrollToPosition and related helpers. Even creating my own ViewAction which calls RecyclerView.scrollBy(0, someScrollDownAmount) has no effect when the RecyclerView believes it is at the "bottom" but really it's bottom item is obscured.
From: https://issuetracker.google.com/121160135
Hello,
I am testing an app with Espresso in a scenario that there is a NestedScrollView and a banner which is CustomPopupView and
it covers the bottom part of the NestedScrollView to tell user some information, and the banner will only show up under some condition. And here comes my problem, when I use Espresso doing scrollTo and click a certain view in that NestedScrollView, it did scroll and the view seems to show up but still covered by the banner which has bigger area than the view to be clicked. So when Espresso perform click, it actually click on the banner view. In the end, the click didn't perform in the way I though.
The text was updated successfully, but these errors were encountered: