-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
test: add user-storage to privacy snapshot and update user-storage mocks #27292
base: develop
Are you sure you want to change the base?
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. |
note - we need to update our library to support generic paths and mock X-Sync data features
ac2fef4
to
fcec986
Compare
@@ -58,5 +58,6 @@ | |||
"oidc.api.cx.metamask.io", | |||
"price.api.cx.metamask.io", | |||
"token.api.cx.metamask.io", | |||
"client-side-detection.api.cx.metamask.io" | |||
"client-side-detection.api.cx.metamask.io", | |||
"user-storage.api.cx.metamask.io" |
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 API is now introduced in e2e tests as we have launched a new "Account Syncing" feature, which will sync your accounts you may have previously stored. This is done on wallet start/open post onboarding.
// TODO - add better mock responses for other Profile Sync features | ||
// (Account Sync, Network 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.
Yeah, we are currently mocking these API responses to fail fast. This ensures that the syncing features won't get in the way with existing e2e tests.
Builds ready [fcec986]
Page Load Metrics (1855 ± 104 ms)
Bundle size diffs
|
Builds ready [552f88e]
Page Load Metrics (1977 ± 113 ms)
Bundle size diffs
|
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.
LGTM!
will this API call not occur if the basic functionalities toggle is off? |
and when/how did the related test become flaky? how does it pass sometimes and fail other times? |
Yes profile sync/this API is disabled when basic functionality is turned off.
We started seeing this appear sometime yesterday. Happy to sync or async on this. |
Quality Gate passedIssues Measures |
Builds ready [1897fad]
Page Load Metrics (1925 ± 78 ms)
Bundle size diffs
|
note - we need to update our library to support generic paths and mock X-Sync data features
Description
This fixes the flaky test for updating the privacy snapshot for user-storage API.
We also better mock the user-storage API to fail fast when testing Account-Syncing.
NOTE - we need to update our library to support generic paths, and also have mock data for testing the X-Syncing features (account syncing, network syncing, notification syncing, asset syncing).
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist