-
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: Flaky contract interaction test #26420
Conversation
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. |
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.
LGTM
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26420 +/- ##
============================================
+ Coverage 0 69.97% +69.97%
============================================
Files 0 1422 +1422
Lines 0 49938 +49938
Branches 0 13861 +13861
============================================
+ Hits 0 34943 +34943
- Misses 0 14995 +14995 ☔ View full report in Codecov by Sentry. |
Builds ready [d173af1]
Page Load Metrics (692 ± 416 ms)
Bundle size diffs
|
Description
On #26234,
scrollAndConfirmAndAssertConfirm
was modified to useclickElementSafe
instead ofclickElement
.Even though this was probably useful for the test in
snap-account-contract-interaction.spec.ts
that the PR introduced, it brokeSends a contract interaction type 2 transaction with custom nonce editing (EIP1559)
insidecontract-interaction-redesign.spec.ts
. This is becauseclickElementSafe
doesn't attempt to find a clickable element multiple times likeclickElement
. Without that retry, the scroll button was not pressed. Without that, the confirm button in the footer was not enabled and the test fails.Adding a delay before the particular usage of
scrollAndConfirmAndAssertConfirm
that was failing fixes the test execution.Related issues
Fixes: #26417
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist