-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix: flaky test Wallet Created Events - Imported Account are sent when onboarding user who chooses to opt in metrics #37328
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
Conversation
…n onboarding user who chooses to opt in metrics
|
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. |
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [9789e0b]
UI Startup Metrics (1275 ± 79 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [aefda6e]
UI Startup Metrics (1302 ± 96 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
seaona
left a comment
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
Description
the test is failing with the following error:
Verifying the captured events when failing, the App installed events are the same as when it succeeds, but in a different order:

Use method
assertInAnyOrderfor the fixChangelog
CHANGELOG entry:
Related issues
Fixes: Flaky test Wallet Created Events - Imported Account are sent when onboarding user who chooses to opt in metrics
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Stabilizes the wallet-imported metrics e2e test by replacing order-dependent checks with
assertInAnyOrderpredicate assertions.assertInAnyOrderintest/e2e/tests/metrics/wallet-imported.spec.ts.App Installed(background) andApp Installed(fullscreen)Analytics Preference SelectedWallet Import AttemptedgetNthEventByNamehelper usage and brittle sequence assertions.Written by Cursor Bugbot for commit aefda6e. This will update automatically on new commits. Configure here.