Skip to content

Commit

Permalink
Added win.console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
can-angun committed Jan 9, 2025
1 parent 78efe41 commit 103e9b1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui-tests/cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@ import './commands';
Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from failing the test
return false;
});
});

Cypress.on('window:before:load', (win) => {
const log = win.console.log;
win.console.log = (...args) => {
log(...args);
cy.task('log', args.join(' '));
};
});

0 comments on commit 103e9b1

Please sign in to comment.