Revert "click orejime popup accept after login"

This reverts commit 33062214da.
This commit is contained in:
Andreas Awouters
2025-05-06 10:03:07 +02:00
parent 3a419b733a
commit bcd9bfd607

View File

@@ -50,11 +50,6 @@ declare global {
* @returns Chainable reference to allow CSRF token to also be sent in header. * @returns Chainable reference to allow CSRF token to also be sent in header.
*/ */
createCSRFCookie(): Chainable<any>; createCSRFCookie(): Chainable<any>;
/**
* Click accept in the Orejime cookie popup
* */
acceptOrejimePopup(): typeof acceptOrejimePopup;
} }
} }
} }
@@ -111,9 +106,6 @@ function loginViaForm(email: string, password: string): void {
cy.get('[data-test="password"]').type(password); cy.get('[data-test="password"]').type(password);
// Click login button // Click login button
cy.get('[data-test="login-button"]').click(); cy.get('[data-test="login-button"]').click();
// wait for the browse to redirect to the reload page, and back
cy.acceptOrejimePopup();
} }
// Add as a Cypress command (i.e. assign to 'cy.loginViaForm') // Add as a Cypress command (i.e. assign to 'cy.loginViaForm')
Cypress.Commands.add('loginViaForm', loginViaForm); Cypress.Commands.add('loginViaForm', loginViaForm);
@@ -181,13 +173,3 @@ function createCSRFCookie(): Cypress.Chainable {
} }
// Add as a Cypress command (i.e. assign to 'cy.createCSRFCookie') // Add as a Cypress command (i.e. assign to 'cy.createCSRFCookie')
Cypress.Commands.add('createCSRFCookie', createCSRFCookie); Cypress.Commands.add('createCSRFCookie', createCSRFCookie);
/**
* Click accept in te Orejime cookie popup
*/
function acceptOrejimePopup(): void {
cy.get('.orejime-Notice-saveButton').click();
}
Cypress.Commands.add('acceptOrejimePopup', acceptOrejimePopup);