-
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
Add confirmation modal on deleting a privacy declaration #4439
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Passing run #5307 ↗︎
Details:
Review all test suite changes for PR #4439 ↗︎ |
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.
nice, just some small comments!
cy.fixture("systems/system.json").then((system) => { | ||
cy.intercept("GET", "/api/v1/system/*", { | ||
body: systems[0], | ||
}).as("getFidesctlSystemWithDataUses"); | ||
body: system, | ||
}).as("getDemoAnalyticsSystem"); | ||
}); |
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 think now that we aren't manipulating the fixture, this can be simplified to
cy.intercept("/api/v1/system/*", {
fixture: "systems/system.json"
}).as("getDemoAnalyticsSystem");
); | ||
}); | ||
|
||
cy.getByTestId("tab-Data uses").click(); | ||
}); | ||
|
||
it("can visit the privacy declaration tab", () => { |
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.
nit: it feels a little weird for this test to be under the "delete privacy declaration" section
</Text> | ||
, including all its cookies. Are you sure you want to | ||
continue? | ||
</Text> |
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 didn't see a design in the original ticket, but our modals have been skewing "centered" on the page with the isCentered
prop
Closes #PROD-1317
Description Of Changes
Adds a confirmation modal on deleting a data use which warns the user that the data use and cookies will be deleted.
Steps to Confirm
Loom video
Pre-Merge Checklist
CHANGELOG.md