5227115f05
* Add Clients tests and fix notification message * Remove TODO message * Add waits and refactor * Refactor and fix tests in realm settings * Fix lint * Refactor, fix tests and add stability * Refactor and stabilize tests * Stabilize tests * Fix Realm settings event test and stabilize * Set confirmModal to always force click * Add force click and wait * Fix masthead test * Modify cypress.json * Modify realm dropdown selector * Revert hook changes
20 lines
617 B
TypeScript
20 lines
617 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("");
|
|
cy.get('[role="progressbar"]').should("not.exist");
|
|
};
|
|
|
|
export const keycloakBeforeEach = () => {
|
|
Cypress.Cookies.preserveOnce("KEYCLOAK_SESSION", "KEYCLOAK_IDENTITY");
|
|
};
|