android / android/testing-samples

Espresso is not waiting for drawer to close

Aperta
#289 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.3k
Fork
3.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)
4. 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

L'issue non indica alcun file o test; inizia individuando il test che apre il drawer di navigazione, fa clic su una voce di menu e verifica DrawerMatchers.isClosed(). Riproducilo con AndroidX Navigation 2.1.0 e confrontalo con 2.0.0; il lavoro è completato quando il drawer è chiuso nel momento in cui viene eseguito il controllo dopo il clic.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, java
Ambito
mobile-dev, testing-qa
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.