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

[747] Prospective UI test stability improvements #748

Merged
merged 1 commit into from
May 13, 2024

Conversation

Clstroud
Copy link
Collaborator

This PR doesn't quite normalize the entire suite (yet), but it attempts to improve the underpinnings of the testPagesAdjustToNewPhrases test, which currently fails intermittently. Any other tests that share those underpinnings have been updated to match.

  1. throws has been introduced into many helper functions. This may not be strictly necessary, but it allows the Swift code to read more clearly, showing how/when a failure might occur. We can dial that back as it makes sense.
  2. tap(afterWaitingForExistenceWithTimeout:) has been replaced with tapWhenExists(timeout: TimeInterval = 0.5). This makes the call site more concise and provides a default timeout value.
  3. File/line parameters for XCT* assertions are more consistently propagated to improve diagnostics when a failure does occur. There may be a few calls I missed along the way, but the situation should be generally improved.

@Clstroud Clstroud merged commit 3b1c6c8 into develop May 13, 2024
6 checks passed
@Clstroud Clstroud deleted the automation/747-improve-test-stability branch May 13, 2024 20:38
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.

None yet

2 participants