Intermittent UI test failure - aboutReferenceBrowserTest

未关闭
#1,752 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, kotlin
领域
mobile, testing

调研方向

先从 Firebase Test Run 和堆栈跟踪开始,然后检查 TestHelper.kt:29、SettingsViewTest.kt:139-140 和 ThreeDotMenuRobot.kt:129。重现 12/9 Debug 失败,并追踪 aboutReferenceBrowserTest 无法找到可滚动元素的原因。在此场景下间歇性测试不再失败且相关 UI test 通过,即表示完成。

由索引模型根据 Issue 内容生成。

描述

eng:ui-test
Firebase Test Run:

https://console.firebase.google.com/project/moz-reference-browser-230023/testlab/histories/bh.b4e77beaed81bc1c/matrices/4810206255833819053/executions/bs.a341ebbe5f032687

Stacktrace:

androidx.test.uiautomator.UiObjectNotFoundException: UiSelector[SCROLLABLE=true] at androidx.test.uiautomator.UiScrollable.scrollBackward(UiScrollable.java:496) at androidx.test.uiautomator.UiScrollable.scrollToBeginning(UiScrollable.java:544) at androidx.test.uiautomator.UiScrollable.scrollToBeginning(UiScrollable.java:563) at androidx.test.uiautomator.UiScrollable.scrollIntoView(UiScrollable.java:265) at androidx.test.uiautomator.UiScrollable.scrollTextIntoView(UiScrollable.java:336) at org.mozilla.reference.browser.helpers.TestHelper.scrollToElementByText(TestHelper.kt:29) at org.mozilla.reference.browser.ui.SettingsViewTest$aboutReferenceBrowserTest$3.invoke(SettingsViewTest.kt:140) at org.mozilla.reference.browser.ui.SettingsViewTest$aboutReferenceBrowserTest$3.invoke(SettingsViewTest.kt:139) at org.mozilla.reference.browser.ui.robots.ThreeDotMenuRobot$Transition.openSettings(ThreeDotMenuRobot.kt:129) at org.mozilla.reference.browser.ui.SettingsViewTest.aboutReferenceBrowserTest(SettingsViewTest.kt:139)

Build:

12/9 Debug

主要语言
Kotlin
星标
668
派生
198
平均合并
9 小时 58 分钟
30 天内合并 PR
55

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla-mobile/reference-browser 的其他 Issue

查看 mozilla-mobile/reference-browser 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。