Espresso is not waiting for drawer to close
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- mobile-dev, testing-qa
调研方向
该 issue 未指定文件或测试;首先找到打开导航抽屉、点击菜单项并检查 DrawerMatchers.isClosed() 的测试。使用 AndroidX Navigation 2.1.0 重现该问题,并与 2.0.0 进行比较;当点击后运行检查时抽屉已关闭,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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:
- Open the navigation drawer
- Click on a menu item in drawer (We call close on the navigation drawer when an item is clicked)
- 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.
- 主要语言
- Java
- 星标
- 9.3k
- 派生
- 3.6k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
android/testing-samples 的其他 Issue
-
Organic*未关闭
难度 1/5 1 小时以内 新手友好度 1/100
android/testing-samples#542 ·
-
难度 5/5 一周以上 新手友好度 1/100
android/testing-samples#541 ·
-
难度 5/5 一周以上 新手友好度 10/100
android/testing-samples#538 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 10/100
android/testing-samples#537 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
android/testing-samples#528 ·
查看 android/testing-samples 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 72/100
oracle/javavscode#652 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
AloisSeckar/demos-java#380 ·