Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 14, 2025

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.

Open in GitHub Codespaces

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

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Strips RemoteFeatureFlagController data from test/e2e/fixtures/onboarding-fixture.json, setting cacheTimestamp to 0 and remoteFeatureFlags to {}.

  • E2E Fixture (test/e2e/fixtures/onboarding-fixture.json):
    • Remove all RemoteFeatureFlagController.remoteFeatureFlags content.
    • Set RemoteFeatureFlagController.cacheTimestamp to 0.
    • Keep other onboarding defaults unchanged.

Written by Cursor Bugbot for commit f70ce81. This will update automatically on new commits. Configure here.

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.
@metamaskbot metamaskbot added the team-core-platform Core Platform team label Nov 14, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [f70ce81]
UI Startup Metrics (1258 ± 86 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1258108414668613081406
load108594212757611261232
domContentLoaded107793412607611171225
domInteractive2515112202186
firstPaint639104130743210961231
backgroundConnect23822329912240255
firstReactRender30205593350
getState2286492540
initialActions104112
loadScripts847701102076894989
setupStore1162641218
numNetworkReqs1367520673
BrowserifyPower User HomeuiStartup22001720304630023893046
load1166986164120914231641
domContentLoaded1146959163021214131630
domInteractive621818059156180
firstPaint632119163554414261635
backgroundConnect25823629714263297
firstReactRender694091158391
getState23916436566298365
initialActions105125
loadScripts908737134319911711343
setupStore29792183292
numNetworkReqs12110018426153184
WebpackStandard HomeuiStartup8377051160938391121
load61155692177610856
domContentLoaded60355190474602843
domInteractive181185141457
firstPaint20259908186203613
backgroundConnect261182153264
firstReactRender311986103648
getState1161931316
initialActions102011
loadScripts60054989471600833
setupStore1153441315
numNetworkReqs1367419871
WebpackPower User HomeuiStartup1094926169324613901693
load663576951126842951
domContentLoaded644565854108818854
domInteractive331394327894
firstPaint22066604167311604
backgroundConnect641622868148228
firstReactRender40374424244
getState1429718122152181
initialActions101011
loadScripts639563843104808843
setupStore1162771427
numNetworkReqs816112926122129
FirefoxBrowserifyStandard HomeuiStartup15361375189711915791820
load1288116915768613341469
domContentLoaded1287116915768613341469
domInteractive56341703654159
firstPaint------
backgroundConnect4628147205289
firstReactRender29234453043
getState1272541325
initialActions208123
loadScripts1260114915167913031424
setupStore167112161437
numNetworkReqs1266515756
BrowserifyPower User HomeuiStartup30742438438264135244382
load14871264199824417361998
domContentLoaded14871264199724417361997
domInteractive317132704198588704
firstPaint------
backgroundConnect4637811923618561192
firstReactRender82591091490109
getState19010837375218373
initialActions41337333
loadScripts14391230191522916821915
setupStore14259632139131632
numNetworkReqs1268024061220240
WebpackStandard HomeuiStartup16571457240821216602247
load13911243179411713951697
domContentLoaded13901243179411713951697
domInteractive57301722866117
firstPaint------
backgroundConnect54202383858115
firstReactRender33258383541
getState13754101143
initialActions102122
loadScripts13591210176510613761599
setupStore2372604312125
numNetworkReqs1366918767
WebpackPower User HomeuiStartup33092643461365241434613
load16801482217721319812177
domContentLoaded16801481217721319812177
domInteractive22776616184490616
firstPaint------
backgroundConnect50212611713467761171
firstReactRender936514421111144
getState20210444594253445
initialActions213123
loadScripts16271459209720819202097
setupStore12233535117118535
numNetworkReqs1278323658219236
📊 Page Load Benchmark Results

Current Commit: f70ce81 | Date: 11/14/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 721ms (±36ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±10ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.33s 1.06s 1.33s
domContentLoaded 721ms 36ms 699ms 992ms 743ms 992ms
firstPaint 77ms 10ms 64ms 164ms 88ms 164ms
firstContentfulPaint 77ms 10ms 64ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 20 Bytes (0%)

@Gudahtt Gudahtt marked this pull request as ready for review November 14, 2025 14:05
"solanaTestnetsEnabled": false,
"walletFrameworkRpcFailoverEnabled": true
}
"cacheTimestamp": 0,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@seaona seaona Nov 14, 2025

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)

Copy link
Member Author

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

Copy link
Member

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 🙏

@Gudahtt Gudahtt enabled auto-merge November 14, 2025 14:12
@Gudahtt Gudahtt added this pull request to the merge queue Nov 14, 2025
Merged via the queue into main with commit a48fbf7 Nov 14, 2025
184 of 186 checks passed
@Gudahtt Gudahtt deleted the remove-flags-from-onboarding-fixture branch November 14, 2025 14:42
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2025
@metamaskbot metamaskbot added the release-13.11.0 Issue or pull request that will be included in release 13.11.0 label Nov 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.11.0 Issue or pull request that will be included in release 13.11.0 size-XL team-core-platform Core Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants