We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8209921 commit 48efcc0Copy full SHA for 48efcc0
cypress/support/e2e.ts
@@ -21,6 +21,13 @@ import 'cypress-axe';
21
22
import { DSPACE_XSRF_COOKIE } from 'src/app/core/xsrf/xsrf.constants';
23
24
+// We might receive uncaught exceptions from external libraries (e.g. it happened before with a broken
25
+// version of the addToAny plugin). These should not cause our tests to fail, so we catch them here.
26
+Cypress.on('uncaught:exception', (err, runnable) => {
27
+ // returning false here prevents Cypress from failing the test
28
+ return false;
29
+});
30
+
31
// Runs once before all tests
32
before(() => {
33
// Cypress doesn't have access to the running application in Node.js.
0 commit comments