-
Notifications
You must be signed in to change notification settings - Fork 5k
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: Improve flakiness of await driver.findElements in 'importing multiple tokens from search' test #24694
Conversation
… tokens from search' test
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #24694 +/- ##
========================================
Coverage 67.41% 67.41%
========================================
Files 1288 1288
Lines 50233 50233
Branches 13014 13014
========================================
Hits 33863 33863
Misses 16370 16370 ☔ View full report in Codecov by Sentry. |
Builds ready [f239c7b]
Page Load Metrics (953 ± 522 ms)
Bundle size diffs
|
Co-authored-by: Danica Shen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Builds ready [b4ecf88]
Page Load Metrics (1008 ± 559 ms)
Bundle size diffs
|
Missing release label release-11.16.6 on PR. Adding release label release-11.16.6 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.16.6. |
Description
This improves on a flaky test that I noticed while working to get mv3 tests to pass. I think it is flaky on mv2 as well. The bug is not visually reproducible manually, but I saw it fail twice on CI.
The test clicks "import-tokens-modal-import-button", then waits for for the loading spinner to be not present, and then finds tokens in the list. It finds the token list as a group and then checks that the expected number are present.
The problem is that the list is not fully populated at the exact same time that the loading spinner is removed.
The fix is to rewrite the test so that it waits for the expected number of tokens to be rendered (instead of assuming the token list is immediately in the fully populated state).
Manual testing steps
This test should continue to pass on all e2e jobs
Pre-merge author checklist
Pre-merge reviewer checklist