119602: Add new cookie setting to e2e tests

This commit is contained in:
Andreas Awouters
2025-02-24 10:14:49 +01:00
parent cdbfcc7cc4
commit 958b3b8c05

View File

@@ -56,7 +56,7 @@ before(() => {
beforeEach(() => { beforeEach(() => {
// Pre-agree to all Orejime cookies by setting the orejime-anonymous cookie // Pre-agree to all Orejime cookies by setting the orejime-anonymous cookie
// This just ensures it doesn't get in the way of matching other objects in the page. // This just ensures it doesn't get in the way of matching other objects in the page.
cy.setCookie('orejime-anonymous', '{"authentication":true,"preferences":true,"acknowledgement":true,"google-analytics":true}'); cy.setCookie('orejime-anonymous', '{"authentication":true,"preferences":true,"acknowledgement":true,"google-analytics":true,"accessibility":true}');
// Remove any CSRF cookies saved from prior tests // Remove any CSRF cookies saved from prior tests
cy.clearCookie(DSPACE_XSRF_COOKIE); cy.clearCookie(DSPACE_XSRF_COOKIE);