-
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 BTC e2e tests #26082
fix: flaky BTC e2e tests #26082
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. |
e05c66d
to
f7bef90
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26082 +/- ##
========================================
Coverage 69.94% 69.94%
========================================
Files 1409 1409
Lines 49794 49794
Branches 13773 13773
========================================
Hits 34826 34826
Misses 14968 14968 ☔ View full report in Codecov by Sentry. |
Builds ready [3aa0dbc]
Page Load Metrics (171 ± 209 ms)
Bundle size diffs
|
Builds ready [60bba26]
Page Load Metrics (67 ± 9 ms)
Bundle size diffs
|
@@ -0,0 +1,59 @@ | |||
import { Mockttp } from 'mockttp'; |
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.
Nit: But we could have just named it common.ts
since it's already in test/e2e/flask/btc/
folder!
|
||
export async function withBtcAccountSnap( | ||
{ | ||
title, |
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.
Nit: We could have use the whole test
object here instead, so we could have computed the title only once here, rather than having it every calls to withBtcAccountSnap
Co-authored-by: Charly Chevalier <[email protected]>
Builds ready [278dba6]
Page Load Metrics (145 ± 170 ms)
Bundle size diffs
|
Quality Gate passedIssues Measures |
Description
This PR fixes the flaky tests that happens during the firefox e2e. A btc balance mock was also added to reduce api call usage.
Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/531
Manual testing steps
N/a
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist