We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f997df5 + 24a6932 commit 276d4c2Copy full SHA for 276d4c2
cypress/support/e2e.ts
@@ -57,6 +57,13 @@ before(() => {
57
cy.task('saveRestBaseDomain', baseDomain);
58
59
});
60
+
61
+ // We might receive uncaught exceptions from external libraries (e.g. it happened before with a broken
62
+ // version of the addToAny plugin). These should not cause our tests to fail, so we catch them here.
63
+ Cypress.on('uncaught:exception', (err, runnable) => {
64
+ // returning false here prevents Cypress from failing the test
65
+ return false;
66
+ });
67
68
69
// Runs once before the first test in each "block"
0 commit comments