-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui/dataset: "Classify" toggle for fidesctl-plus (#1057)
* ui/dataset: Spacing improvements for generate form * ui/inputs: CustomSwitch component for switches * ui/dataset: "Classify" toggle for fidesctl-plus * ui/dataset: Cypress test when classify is available * Update changelog
- Loading branch information
1 parent
f31e96a
commit 25e6c4e
Showing
4 changed files
with
112 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* This test suite is a parallel of datests.cy.ts for testing Dataset features when the user has | ||
* access to the Fidescls API. This suite should cover the behavior that is different when a | ||
* dataset is classified. | ||
*/ | ||
describe("Datasets with Fides Classify", () => { | ||
beforeEach(() => { | ||
cy.intercept("GET", "/api/v1/plus/health", { | ||
statusCode: 200, | ||
body: { | ||
status: "healthy", | ||
core_fidesctl_version: "1.8", | ||
}, | ||
}).as("getPlusHealth"); | ||
}); | ||
|
||
describe("Creating datasets", () => { | ||
it("Shows the classify switch", () => { | ||
cy.visit("/dataset/new"); | ||
cy.getByTestId("connect-db-btn").click(); | ||
|
||
cy.getByTestId("input-classify").find("input").should("be.checked"); | ||
cy.getByTestId("input-classify").click(); | ||
cy.getByTestId("input-classify").find("input").should("not.be.checked"); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters