fix: flaky test ENS domain resolves to a correct address#25248
Merged
fix: flaky test ENS domain resolves to a correct address#25248
ENS domain resolves to a correct address#25248Conversation
Contributor
|
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. |
ENS domain resolves to a correct address/test-failure-screenshot.pngENS domain resolves to a correct address
Collaborator
Builds ready [7f44013]
Page Load Metrics (46 ± 2 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25248 +/- ##
========================================
Coverage 65.61% 65.61%
========================================
Files 1373 1373
Lines 54523 54523
Branches 14282 14282
========================================
Hits 35774 35774
Misses 18749 18749 ☔ View full report in Codecov by Sentry. |
danjm
previously approved these changes
Jun 12, 2024
vthomas13
previously approved these changes
Jun 12, 2024
chloeYue
previously approved these changes
Jun 12, 2024
Collaborator
Builds ready [5268c76]
Page Load Metrics (104 ± 134 ms)
Bundle size diffs
|
danjm
approved these changes
Jun 13, 2024
chloeYue
approved these changes
Jun 13, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the flaky test
ENS domain resolves to a correct addressThe error is:
The problem is that we are clicking the address-list-item button, and nothing happens afterwards. Then we try to find the next element but is not there.
If we look into the address-list-item button element we can see how it has nested elements inside, which will render the address and the ENS domain.
Clicking on a "container" element with other elements inside might not work as we expect, since the inside elements might not be fully updated before clicking with unknown effects (in this case, the ENS and address resolution) .
To fix this, we are doing 2 things:
See Box as the container button, and nested elements with address and ENS domain.
Related issues
Fixes: #24652
Manual testing steps
yarn test:e2e:single test/e2e/tests/transaction/ens.spec.js --browser=chrome --leave-running --retryUntilFailure --retries=10Screenshots/Recordings
Ci failure screenshot: notice how, after clicking the ENS address button, we don't see the asset below, this means that the click didn't have any effect.
Expected: after clicking the EN address button, we should see the asset below
Pre-merge author checklist
Pre-merge reviewer checklist