19 lines
563 B
TypeScript
19 lines
563 B
TypeScript
export const keycloakBefore = () => {
|
|
/*
|
|
Prevent unpredictable 401 errors from failing individual tests.
|
|
These are most often occurring during the login process:
|
|
GET /admin/serverinfo/
|
|
GET /admin/master/console/whoami
|
|
*/
|
|
cy.on("uncaught:exception", (err) => {
|
|
console.log("-------------------");
|
|
console.log(err);
|
|
console.log("--------------------");
|
|
return false;
|
|
});
|
|
cy.visit("");
|
|
};
|
|
|
|
export const keycloakBeforeEach = () => {
|
|
Cypress.Cookies.preserveOnce("KEYCLOAK_SESSION", "KEYCLOAK_IDENTITY");
|
|
};
|