Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make XML UI smoke tests more robust #28

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

beekhc
Copy link
Collaborator

@beekhc beekhc commented Jan 14, 2025

Which problem is this PR solving?

Smoke tests are flaky when running on circleci, but not locally. The underlying cause is a system ANR dialog popping up and blocking access to the app.

Short description of the changes

Changed the code that gets buttons in the XML UI to:

  • wait longer before giving up
  • retry when the button isn't found
  • dismiss any possible ANR dialog between retries
  • take a screenshot if the button still isn't found after the retries
  • upload the screenshot to circleci as an artifact

How to verify that this has the expected result

The tests have been run 5 times in a row without failing.

@beekhc beekhc requested a review from a team as a code owner January 14, 2025 18:33
@beekhc beekhc changed the title fix: increase smoke test timeouts to hopefully reduce flakiness fix: make XML UI smoke tests more robust Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants