Skip to content

Commit

Permalink
test(cypress): temporarily ignore exception on login
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneZein committed Dec 12, 2024
1 parent 6abdc52 commit 14f5e7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ Cypress.Commands.add('login', (enableWorkspaces = false) => {
// This JS file causes randomly an uncaught exception on login page which blocks the tests
// Cannot read properties of undefined (reading 'setAttribute')
cy.intercept({ url: 'https://sso.stage.redhat.com/auth/resources/0833r/login/rhd-theme/dist/pfelements/bundle.js' }, {});
Cypress.on('uncaught:exception', (err, runnable) => {
console.log(err);
return false;
});
cy.visit('/');
// disable analytics integrations
cy.setLocalStorage('chrome:analytics:disable', 'true');
Expand Down

0 comments on commit 14f5e7f

Please sign in to comment.