Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Espresso doesn't scroll to the view and make it really "visible" #234

Open
jongerrish opened this issue Mar 7, 2019 · 3 comments
Open

Comments

@jongerrish
Copy link
Collaborator

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.

@paolomoschini
Copy link

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
Update README with Bazel CI badge and target labels
@vitiral
Copy link

vitiral commented Dec 18, 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.

I have yet to find a solution.

@pisanyialeksei
Copy link

Now I'm facing this problem with enabled edge-to-edge. Items of ScrollView actually displayed behind the system navigation bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants