Skip to content

Commit bcd9bfd

Browse files
committed
Revert "click orejime popup accept after login"
This reverts commit 3306221.
1 parent 3a419b7 commit bcd9bfd

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

cypress/support/commands.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ declare global {
5050
* @returns Chainable reference to allow CSRF token to also be sent in header.
5151
*/
5252
createCSRFCookie(): Chainable<any>;
53-
54-
/**
55-
* Click accept in the Orejime cookie popup
56-
* */
57-
acceptOrejimePopup(): typeof acceptOrejimePopup;
5853
}
5954
}
6055
}
@@ -111,9 +106,6 @@ function loginViaForm(email: string, password: string): void {
111106
cy.get('[data-test="password"]').type(password);
112107
// Click login button
113108
cy.get('[data-test="login-button"]').click();
114-
115-
// wait for the browse to redirect to the reload page, and back
116-
cy.acceptOrejimePopup();
117109
}
118110
// Add as a Cypress command (i.e. assign to 'cy.loginViaForm')
119111
Cypress.Commands.add('loginViaForm', loginViaForm);
@@ -181,13 +173,3 @@ function createCSRFCookie(): Cypress.Chainable {
181173
}
182174
// Add as a Cypress command (i.e. assign to 'cy.createCSRFCookie')
183175
Cypress.Commands.add('createCSRFCookie', createCSRFCookie);
184-
185-
/**
186-
* Click accept in te Orejime cookie popup
187-
*/
188-
function acceptOrejimePopup(): void {
189-
cy.get('.orejime-Notice-saveButton').click();
190-
}
191-
Cypress.Commands.add('acceptOrejimePopup', acceptOrejimePopup);
192-
193-

0 commit comments

Comments
 (0)