-
Notifications
You must be signed in to change notification settings - Fork 5.4k
test: Remove feature flags from onboarding fixture #37857
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
Feature flags were accidentally added to the onboarding fixture recently. This wasn't a problem for E2E tests because we refresh feature flags as part of initialization (which itself was a bug), but when we tried to fix this in #37552 it revealed this fixture problem. The onboarding fixture has been updated to not include any feature flags. Individual E2E tests can set the features they need using a manifest override or a feature flag API mock.
Builds ready [f70ce81]
UI Startup Metrics (1258 ± 86 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
| "solanaTestnetsEnabled": false, | ||
| "walletFrameworkRpcFailoverEnabled": true | ||
| } | ||
| "cacheTimestamp": 0, |
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.
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.
mmm I see 🤔 the resulting onboarding fixture we have is the one exported, once we imported a dist build in the browser, without any modification, after waiting for the wallet to load. If that becomes a problem, then we'll need to add some logic for modifying this and leaving this as an empty object (in the work we are doing for automatically export the fixture)
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.
The process is correct, in a sense. It would have produced the correct result except for there is a bug during wallet initialization, which caused this state to be updated when it should not have been (feature flags were updated, but it's supposed to delay that until after onboarding)
That bug is fixed in #37552
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.
oh I get it. Thank you vmuch for further explaining Mark 🙏
Description
Feature flags were accidentally added to the onboarding fixture recently. This wasn't a problem for E2E tests because we refresh feature flags as part of initialization (which itself was a bug), but when we tried to fix this in #37552 it revealed this fixture problem.
The onboarding fixture has been updated to not include any feature flags. Individual E2E tests can set the features they need using a manifest override or a feature flag API mock.
Changelog
CHANGELOG entry: null
Related issues
Unblocks #37552
Manual testing steps
N/A
Screenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Strips
RemoteFeatureFlagControllerdata fromtest/e2e/fixtures/onboarding-fixture.json, settingcacheTimestampto0andremoteFeatureFlagsto{}.test/e2e/fixtures/onboarding-fixture.json):RemoteFeatureFlagController.remoteFeatureFlagscontent.RemoteFeatureFlagController.cacheTimestampto0.Written by Cursor Bugbot for commit f70ce81. This will update automatically on new commits. Configure here.