android / android/android-test

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

Open
#234 3 comments 9 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported Espresso scrollTo and click case with a NestedScrollView and a CustomPopupView covering the target. No source file or test is identified in the issue; done means determining how the target's actual visibility is handled before the click occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.