-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: hotfix onboarding notification e2e tests #24896
Merged
Prithpal-Sooriya
merged 5 commits into
develop
from
NOTIFY-709-hotfix-basic-functionality-switch-breaks-e2e-tests
May 30, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8849db9
fix: hotfix e2e tests
Prithpal-Sooriya f601498
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
Prithpal-Sooriya 279852c
Merge branch 'develop' into NOTIFY-709-hotfix-basic-functionality-swi…
danjm 3b3b313
test: update e2e test helper
Prithpal-Sooriya a31ffac
Merge branch 'NOTIFY-709-hotfix-basic-functionality-switch-breaks-e2e…
Prithpal-Sooriya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,8 +138,10 @@ export default function PrivacySettings() { | |
setUseTransactionSimulations(isTransactionSimulationsEnabled); | ||
dispatch(setPetnamesEnabled(turnOnPetnames)); | ||
|
||
if (!isProfileSyncingEnabled && participateInMetaMetrics) { | ||
dispatch(performSignIn()); | ||
if (externalServicesOnboardingToggleState) { | ||
if (!isProfileSyncingEnabled && participateInMetaMetrics) { | ||
dispatch(performSignIn()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hotfixes to ensure we do not all these methods. A separate PR/s will be out soon that will handle:
|
||
} | ||
} | ||
|
||
if (ipfsURL && !ipfsError) { | ||
|
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.
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.
why is this change needed?
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.
In the driver actions above (a few lines above), we have already toggled the profile-sync button off, so we don't want to turn it back on.
NOTE - we will discuss with the team to better align with the global "Basic Functionality" toggle. (just some thoughts), but if the Basic Functionality is turned off, do we want to disable or hide our notification toggles & features. May be worth discussing with other teams on how this is solved.
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 see. I guess we could also just delete the line above?
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.
Since our toggle opens a modal to warn you that you are turning off, I think the lines above are valid.
The snippet above, it toggles profile sync off, and then confirms turning off profile sync.
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.
I do get it though, this is some crazy CSS selectors here. I'll see if we can filter or do something else instead.
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, sorry, I missed that part about the modal. We can leave this as is for now and clean up later