-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adds new FidesPreferenceToggled event #4253
Conversation
Passing run #4631 ↗︎
Details:
Review all test suite changes for PR #4253 ↗︎ |
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.
love the tests 🤩 I left a comment for how I think we can streamline some of this code, let me know what you think!
@@ -68,6 +68,7 @@ Cypress.Commands.add("visitConsentDemo", (options?: FidesConfig) => { | |||
); | |||
win.addEventListener("FidesUpdated", cy.stub().as("FidesUpdated")); | |||
win.addEventListener("FidesUIShown", cy.stub().as("FidesUIShown")); | |||
win.addEventListener("FidesUIChanged", cy.stub().as("FidesUIChanged")); |
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.
hmm this name is a little weird to me... it sounds like the UI component itself changed. I wonder if it can be something like "FidesPreferenceToggled" ? but eh, I don't feel all that strongly about it.
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.
done!
a4db052
to
4638567
Compare
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.
perfect ✨
Co-authored-by: Allison King <[email protected]>
Co-authored-by: Allison King <[email protected]>
Closes https://github.com/ethyca/fidesplus/issues/1121
Description Of Changes
Adds new
FidesPreferenceToggled
event to track when toggles / user prefs change without being saved.Code Changes
FidesPreferenceToggled
for both TCF and non-TCF noticesSteps to Confirm
FidesPreferenceToggled
eventPre-Merge Checklist
CHANGELOG.md