Skip to content

Commit

Permalink
Merge branch 'main' into fides-Adyen-Erasure-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcGEthyca authored Apr 2, 2024
2 parents d0efcce + 9c5dd34 commit 3433d24
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ The types of changes are:
## [Unreleased](https://github.com/ethyca/fides/compare/2.33.0...main)

### Fixed

- Fixed select dropdowns being cut off by edges of modal forms [#4757](https://github.com/ethyca/fides/pull/4757)
- Changed "allow user to dismiss" toggle to show on config form for TCF experience [#4755](https://github.com/ethyca/fides/pull/4755)

## [2.33.0](https://github.com/ethyca/fides/compare/2.32.0...2.33.0)

Expand Down
3 changes: 3 additions & 0 deletions clients/admin-ui/cypress/e2e/privacy-experiences.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,12 @@ describe("Privacy experiences", () => {
it("doesn't allow component type to be changed after selection", () => {
cy.selectOption("input-component", "Banner and modal");
cy.getByTestId("input-component").find("input").should("be.disabled");
cy.getByTestId("input-dismissable").should("be.visible");
});

it("doesn't show a preview for a privacy center", () => {
cy.selectOption("input-component", "Privacy center");
cy.getByTestId("input-dismissable").should("not.be.visible");
cy.getByTestId("no-preview-notice").contains(
"Privacy center preview not available"
);
Expand Down Expand Up @@ -297,6 +299,7 @@ describe("Privacy experiences", () => {
}).as("getTCFExperience");
});
cy.wait("@getTCFExperience");
cy.getByTestId("input-dismissable").should("be.visible");
cy.getByTestId("no-preview-notice").contains(
"TCF preview not available"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,34 +171,31 @@ export const PrivacyExperienceForm = ({
variant="stacked"
/>
{values.component !== ComponentType.TCF_OVERLAY ? (
<>
<CustomSelect
name="component"
id="component"
options={componentTypeOptions}
label="Experience Type"
<CustomSelect
name="component"
id="component"
options={componentTypeOptions}
label="Experience Type"
variant="stacked"
isDisabled={!!values.component}
isRequired
/>
) : null}
<Collapse
in={
values.component && values.component !== ComponentType.PRIVACY_CENTER
}
animateOpacity
>
<Box p="1px">
<CustomSwitch
name="dismissable"
id="dismissable"
label="Allow user to dismiss"
variant="stacked"
isDisabled={!!values.component}
isRequired
/>
<Collapse
in={
values.component &&
values.component !== ComponentType.PRIVACY_CENTER
}
animateOpacity
>
<Box p="1px">
<CustomSwitch
name="dismissable"
id="dismissable"
label="Modal is dismissable"
variant="stacked"
/>
</Box>
</Collapse>
</>
) : null}
</Box>
</Collapse>
<ScrollableList
label="Associated properties"
addButtonLabel="Add property"
Expand Down

0 comments on commit 3433d24

Please sign in to comment.