-
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: Fix unit and e2e tests that were expected the date based privacy policy components to not be shown #25390
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. |
app/scripts/controllers/app-state.js
Outdated
@@ -53,6 +54,7 @@ export default class AppStateController extends EventEmitter { | |||
trezorModel: null, | |||
currentPopupId: undefined, | |||
onboardingDate: null, | |||
newPrivacyPolicyToastDate: PRIVACY_POLICY_DATE, |
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.
A bunch of touched files. But this moves the privacy policy into app state - which allows us to use fixtures and mocks for our e2e and unit tests
Builds ready [a6d7cd0]
Page Load Metrics (48 ± 3 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25390 +/- ##
===========================================
+ Coverage 65.37% 65.41% +0.04%
===========================================
Files 1377 1381 +4
Lines 54623 54712 +89
Branches 14320 14346 +26
===========================================
+ Hits 35709 35789 +80
- Misses 18914 18923 +9 ☔ View full report in Codecov by Sentry. |
a6d7cd0
to
0ebaf5c
Compare
Builds ready [01c922a]
Page Load Metrics (52 ± 5 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Missing release label release-12.0.0 on PR. Adding release label release-12.0.0 on PR and removing other release labels(release-12.1.0), as PR was cherry-picked in branch 12.0.0. |
Missing release label release-11.16.13 on PR. Adding release label release-11.16.13 on PR and removing other release labels(release-12.0.0), as PR was cherry-picked in branch 11.16.13. |
Description
Fixture / mock data in unit and e2e tests have been modified to handle the privacy policy toast. These tests previously assumed that the privacy policy toast, and in one case the updated metametrics component during onboarding, would not be shown. However, their display was date dependent. With this PR, the updated test data takes these dates into account, and tests should now pass.
Related issues
Fixes: failing tests on develop
Manual testing steps
e2e and unit tests should pass
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist