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 is not waiting for drawer to close #289

Open
chklow opened this issue Sep 30, 2019 · 0 comments
Open

Espresso is not waiting for drawer to close #289

chklow opened this issue Sep 30, 2019 · 0 comments

Comments

@chklow
Copy link

@chklow chklow commented Sep 30, 2019

I am currently using androidx test espresso version 3.2.0.
After updating androidx's navigation version to 2.1.0, Espresso has become flaky when performing ViewActions.click() on page that was navigated to through a navigation drawer due to Espresso not waiting for the drawer to be closed before performing the action.
The test would:

  1. Open the navigation drawer
  2. Click on a menu item in drawer (We call close on the navigation drawer when an item is clicked)
  3. Check DrawerMatchers.isClosed() on the drawer layout, which fails.

This was not an issue in navigation version 2.0.0, since I confirmed the tests did not fail if I reverted the version from 2.1.0 to 2.0.0.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.