android / android/testing-samples

Espresso is not waiting for drawer to close

オープン
#289 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
9.3k
フォーク
3.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue にはファイル名もテストも記載されていません。まず、ナビゲーションドロワーを開き、メニュー項目をクリックし、DrawerMatchers.isClosed() を確認するテストを見つけてください。AndroidX Navigation 2.1.0 で再現し、2.0.0 と比較してください。クリック後にチェックが実行された時点でドロワーが閉じていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
mobile-dev, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。