-
Notifications
You must be signed in to change notification settings - Fork 361
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: [M3-7409] - Add GDPR agreement e2e #10033
Conversation
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 is awesome, thanks @abailly-akamai! I know this is a draft PR -- happy to re-review if any changes get made
}), | ||
]; | ||
|
||
authenticate(); |
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.
authenticate(); |
We only need this when we make calls to the API from within the test so we can safely get rid of it and the import for this test
25ecb3a
to
54a62b6
Compare
mockAppendFeatureFlags, | ||
mockGetFeatureFlagClientstream, | ||
} from 'support/intercepts/feature-flags'; | ||
import { makeFeatureFlagData } from 'support/util/feature-flags'; |
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.
just a clean up of unused imports
component="label" | ||
htmlFor="gdpr-checkbox" | ||
style={{ marginLeft: 4 }} | ||
> |
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.
Improving the accessibility here. The checkbox was never labeled.
Coverage Report: ❌ |
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.
Test passes locally and remotely ✅
Code review ✅
658673e
to
464aed0
Compare
Description 📝
Small PR to add e2e coverage for the GDPR agreement panel.
Since we are using existing test accounts it is preferable to mock the response from
account/agreements
.Changes 🔄
gdpr-agreement.spec.ts
account/agreements
Reproduction steps
Verification steps
yarn up
andyarn cy:debug
, pick thegdpr-agreement
test and run itAs an Author I have considered 🤔
Check all that apply