keycloak-scim/cypress/support/util/keycloak_hooks.ts

17 lines
498 B
TypeScript
Raw Normal View History

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
*/
2021-09-16 10:24:21 +00:00
cy.on("uncaught:exception", (err) => {
console.log("-------------------");
console.log(err);
console.log("--------------------");
return false;
});
cy.visit("");
cy.get('[role="progressbar"]').should("not.exist");
};