-
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 test: Check the toggle for hex data #25899
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. |
Builds ready [b580504]
Page Load Metrics (265 ± 262 ms)
Bundle size diffs
|
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.
Only a small Nit.
if (process.env.MMI && selector === selectors.settingsDiv) { | ||
await driver.waitForSelector(selectors.portfolioMenuOption); | ||
await driver.clickElement(selector); | ||
} else { | ||
await driver.waitForSelector(selector); | ||
await driver.clickElement(selector); | ||
} |
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.
if (process.env.MMI && selector === selectors.settingsDiv) { | |
await driver.waitForSelector(selectors.portfolioMenuOption); | |
await driver.clickElement(selector); | |
} else { | |
await driver.waitForSelector(selector); | |
await driver.clickElement(selector); | |
} | |
if (process.env.MMI && selector === selectors.settingsDiv) { | |
await driver.waitForSelector(selectors.portfolioMenuOption); | |
} | |
await driver.waitForSelector(selector); | |
await driver.clickElement(selector); |
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.
@chloeYue Thanks for the suggestion! I tried it before but prefer to keep the function(clickElementsInSequence) original pattern. Thanks for understanding.
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.
After discussion, we agreed to keep the await driver.waitForSelector(selector);
line. Suggested code changed.
Quality Gate passedIssues Measures |
Builds ready [dedae33]
Page Load Metrics (233 ± 243 ms)
Bundle size diffs
|
Description
This PR is to fix the flaky test occurring in the mmi build, where the dynamic menu option 'Portfolio Dashboard' is loaded and hence added the conditional wait only for the mmi build.
Related issues
Fixes: #24660
Manual testing steps
Run locally or in codespace the test using below command:-
yarn
yarn build:test:mmi
yarn test:e2e:single test/e2e/tests/settings/show-hex-data.spec.js --browser=chrome --debug --leave-running
Note:- Set the variable process.env.MMI = 'true' at the spec file when executing locally.
Validate the CI for mmi should pass.
Pre-merge author checklist
Pre-merge reviewer checklist