feat: Enable redesigned transaction confirmations for all users #28321
+5,269
−2,490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Migrates users to opt in for redesigned transactions. Also adds a method to reenable the old flows for the old e2e tests. Before removing the toggle permanently, we will need to go back and change the e2e tests to support the new flows.
This PR also duplicates tests on the red group below and adds modification to make the tests pass on the redesigned flows.
From the e2e tests that broke with the migration:
🔴 Flows that have to be tested before opening up the redesign to everyone (create a duplicate):
🟡 Flows that we don't need to migrate now, but will have to be migrated or adapted when old confirmations flows are deleted
🟢 Flows that we don't need to migrate now, nor do we need to migrate in the future (can be deleted)
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3026
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist