Intermittent UI test failure - aboutReferenceBrowserTest

Open
#1,752 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile, testing

Research direction

Start with the Firebase Test Run and the stack trace, then inspect TestHelper.kt:29, SettingsViewTest.kt:139-140, and ThreeDotMenuRobot.kt:129. Reproduce the 12/9 Debug failure and trace why aboutReferenceBrowserTest cannot find the scrollable element. Done means the intermittent test no longer fails in this scenario and the relevant UI test passes.

Written by the indexing model from the issue text.

Description

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

Dominant language
Kotlin
Stars
668
Forks
198
Avg merge
9h 58m
Merged PRs (30d)
55

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla-mobile/reference-browser

All issues in mozilla-mobile/reference-browser

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.