diff --git a/CHANGELOG.md b/CHANGELOG.md index 59aee49854..59a1667629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ The types of changes are: ### Fixed - Fixed typo in the BigQuery integration description [#5120](https://github.com/ethyca/fides/pull/5120) +- Fixed default values of Experience config toggles [#5123](https://github.com/ethyca/fides/pull/5123) ## [2.41.0](https://github.com/ethyca/fides/compare/2.40.0...2.41.0) diff --git a/clients/admin-ui/cypress/e2e/privacy-experiences.cy.ts b/clients/admin-ui/cypress/e2e/privacy-experiences.cy.ts index d38e5148ed..33f800cfdc 100644 --- a/clients/admin-ui/cypress/e2e/privacy-experiences.cy.ts +++ b/clients/admin-ui/cypress/e2e/privacy-experiences.cy.ts @@ -201,8 +201,10 @@ describe("Privacy experiences", () => { const { body } = interception.request; expect(body).to.eql({ allow_language_selection: false, + auto_detect_language: true, component: "banner_and_modal", disabled: true, + dismissable: true, name: "Test experience name", privacy_notice_ids: ["pri_b1244715-2adb-499f-abb2-e86b6c0040c2"], regions: ["fr"], diff --git a/clients/admin-ui/src/features/privacy-experience/form/helpers.tsx b/clients/admin-ui/src/features/privacy-experience/form/helpers.tsx index 740faab9e8..2d29b2e8f8 100644 --- a/clients/admin-ui/src/features/privacy-experience/form/helpers.tsx +++ b/clients/admin-ui/src/features/privacy-experience/form/helpers.tsx @@ -39,9 +39,11 @@ export const defaultTranslations: ExperienceTranslationCreate[] = [ export const defaultInitialValues: Omit = { name: "", disabled: false, + dismissable: true, allow_language_selection: false, regions: [], translations: defaultTranslations, + auto_detect_language: true, }; // utility type to pass as a prop to the translation form export type TranslationWithLanguageName = ExperienceTranslation &