Skip to content

Commit 4107582

Browse files
authored
Update consent-banner-tcf-custom-notices.cy.ts (#5752)
1 parent 97c6627 commit 4107582

File tree

1 file changed

+0
-46
lines changed

1 file changed

+0
-46
lines changed

clients/privacy-center/cypress/e2e/consent-banner-tcf-custom-notices.cy.ts

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -212,52 +212,6 @@ describe("Fides-js TCF", () => {
212212
});
213213
});
214214

215-
describe("Payload optimization", () => {
216-
beforeEach(() => {
217-
cy.getCookie(CONSENT_COOKIE_NAME).should("not.exist");
218-
stubTCFExperience({
219-
includeCustomPurposes: true,
220-
});
221-
});
222-
it("merges full experience with minimal after successful fetch", () => {
223-
cy.window().then((win) => {
224-
cy.fixture("consent/experience_tcf.json").then((payload) => {
225-
cy.wait("@getPrivacyExperience");
226-
expect(
227-
(win.Fides.experience as PrivacyExperienceMinimal)
228-
.tcf_purpose_consent_ids,
229-
).to.have.length(11);
230-
expect((win.Fides.experience as any).tcf_purpose_consents).to.not
231-
.exist;
232-
cy.waitUntilFidesInitialized().then(() => {
233-
const experience = payload.items[0];
234-
const updatedExperience = {
235-
...experience,
236-
tcf_purpose_consents: [],
237-
};
238-
stubTCFExperience({
239-
experienceFullOverride: updatedExperience,
240-
includeCustomPurposes: true,
241-
});
242-
cy.wait("@getPrivacyExperience");
243-
expect(
244-
(
245-
win.Fides.experience as PrivacyExperience &
246-
PrivacyExperienceMinimal
247-
).tcf_purpose_consent_ids,
248-
).to.have.length(11);
249-
expect(
250-
(
251-
win.Fides.experience as PrivacyExperience &
252-
PrivacyExperienceMinimal
253-
).tcf_purpose_consents,
254-
).to.exist.to.have.length(4);
255-
});
256-
});
257-
});
258-
});
259-
});
260-
261215
describe("initial layer", () => {
262216
beforeEach(() => {
263217
cy.getCookie(CONSENT_COOKIE_NAME).should("not.exist");

0 commit comments

Comments
 (0)