-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: Fix flaky GasFeeToken e2e test via 7702 #24161
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
base: main
Are you sure you want to change the base?
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are purely E2E test infrastructure modifications:
Since no application code is changed, only E2E test code, the risk is low. However, since a previously skipped test is being re-enabled (it was skipped due to "app crashes on CI"), we should run the |
| (symbolElementAttributes as { text?: string; label?: string })?.label ?? | ||
| ''; | ||
| return symbolElementLabel; | ||
| }; |
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.
Bug: Helper function violates Page Object Model pattern (Bugbot Rules)
The getGasFeeTokenSelected() helper function performs element attribute access and parsing logic directly in the spec file. According to the E2E testing guidelines which state "Move all element selectors to Page Objects or dedicated selector files" and "Access UI elements through Page Object methods, not directly in test specs," this logic accessing RowComponents.NetworkFeeGasFeeTokenSymbol and calling getAttributes() should be encapsulated in a Page Object method (like RowComponents or a related page class) rather than defined in the test spec file.
|



Description
This Pr aims to fix the flakiness for
e2e/specs/confirmations-redesigned/transactions/gas-fee-tokens-eip-7702.spec.ts.Changelog
CHANGELOG entry: null
Related issues
Fixes: #24139
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds visibility checks and refactors token selection retrieval to stabilize the Gas Fee Token EIP-7702 e2e test, then re-enables it.
e2e/pages/Confirmation/GasFeeTokenModal.tsGAS_FEE_TOKEN_AMOUNT_FIATbefore text check.e2e/specs/confirmations-redesigned/transactions/gas-fee-tokens-eip-7702.spec.tsgetGasFeeTokenSelected()helper and use it to verify selected token label.Select a tokenis visible before validations.Written by Cursor Bugbot for commit 1c2bb39. This will update automatically on new commits. Configure here.