android / android/android-test

Espresso is not waiting for navigation drawer to close

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

Description

### Description

It seems that Espresso is not waiting for the navigation drawer to be closed before performing/checking following actions.

### Steps to Reproduce

1. Open navigation drawer
2. Click on an item such that the underlying layout changes (e.g. RecyclerView)
3. Click on an item in that recycler view

### Expected Results

Click is performed on the item of the recycler view.

### Actual Results

Click is performed on the navigation drawer.

### AndroidX Test and Android OS Versions

- androidx.test.espresso:espresso-core:3.3.0
- androidx.test.espresso:espresso-contrib:3.3.0
- minSdkVersion 24
- targetSdkVersion 29

### Link to a public git repo demonstrating the problem:

### References

It seems that the problem already occurred/was introduced in a previous version: https://github.com/android/testing-samples/issues/289

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the three listed steps with androidx.test.espresso:espresso-core and espresso-contrib 3.3.0 on the stated Android versions, and compare the behavior with the referenced issue. Done means the recycler-view item is clicked after the navigation drawer closes rather than the drawer receiving the click.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.