mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Revert "click orejime popup accept after login"
This reverts commit 33062214da
.
This commit is contained in:
@@ -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);
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user