-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat: Migration #122 set redesignedConfirmationsEnabled to true #25769
feat: Migration #122 set redesignedConfirmationsEnabled to true #25769
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. |
duplication code only applies to migrations 🤔 unsure how we usually go about this. should sonarcloud include these files? |
Builds ready [dca23ea]
Page Load Metrics (75 ± 11 ms)
Bundle size diffs
|
Hey @digiwand : changes look good, can you plz ensure that this does not makes contract interaction visible to users. |
Gentle reminder to import the migration in |
Thanks @pedronfigueiredo! 🙏🏼 updated |
hi @jpuri, lgtm! old contract interaction continues to show. I believe the contract interaction redesign is controlled by the ENV var ENABLE_CONFIRMATION_REDESIGN |
20fdcd6
had to resolve a merge conflict. Rereviews please 🙏🏼 @matthewwalsh0 @pedronfigueiredo |
3cb1b25
This reverts commit d5cb300.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25769 +/- ##
===========================================
+ Coverage 69.67% 69.68% +0.01%
===========================================
Files 1402 1403 +1
Lines 49652 49667 +15
Branches 13720 13723 +3
===========================================
+ Hits 34594 34607 +13
- Misses 15058 15060 +2 ☔ View full report in Codecov by Sentry. |
This reverts commit 9d35713.
Builds ready [a8b9686]
Page Load Metrics (79 ± 11 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
This reverts commit e8acced.
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.
PR Summary
(updates since last review)
The pull request introduces migration #122 to enable redesigned confirmations for all users by setting redesignedConfirmationsEnabled
to true.
- Helper Function Addition: Added
tempToggleSettingRedesignedConfirmations
intest/e2e/helpers.js
to manually toggle theredesignedConfirmationsEnabled
setting. - Test Integrity: Ensures tests requiring the old signature pages can manually toggle the setting off, maintaining test integrity during the transition.
- Migration Script: Added
app/scripts/migrations/122.ts
to setredesignedConfirmationsEnabled
to true. - Test Updates: Added
app/scripts/migrations/122.test.ts
to verify migration logic. - Migration Index: Updated
app/scripts/migrations/index.js
to include the new migration script.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Quality Gate passedIssues Measures |
Builds ready [b86b30b]
Page Load Metrics (155 ± 181 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -306,6 +313,8 @@ describe('Sign Typed Data Signature Request', function () { | |||
|
|||
// switch to the Dapp and verify the rejection was successful | |||
await driver.switchToWindowWithTitle('E2E Test Dapp'); | |||
|
|||
await driver.waitForSelector(data.verifyRejectionResultId); |
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.
this seemed to have fixed some "Sign Typed Data" flaky tests I ran into
Description
This migration sets redesignedConfirmationsEnabled to true. Some users may have explicitly turned off the experimental setting, which this migration will reset to true. This is intentional as we also plan to remove the setting in an upcoming release.
I also added the redesigned confirmation prop to the Sentry state log. I had to decide whether to add it to support the setting in the tests, so I went with adding it.
This PR also partially fixes the Sign Typed Data flaky test when testing the verified result.
Getting the tests to pass were a bit tricky. It turns out the migrations run after the fixtures are set. The withPreferencesController fixture method is no help here.
One way we discussed to set the desired test state is to set the previous migration data to the state and setting the fixture migration version to the current version:
This would require opening a live version, extracting the latest migration state, and adding the mock state to the tests.
Instead, we manually toggle the setting off for each test that requires the old signature pages.
Related issues
Fixes: #24614
following Cherry-pick PR → #26046
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist