From 0211c7024258432bd461f66db119a68b7dbadca7 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Wed, 9 Nov 2022 11:33:19 +0100 Subject: [PATCH] Do not fail test on uncaught exception --- cypress/support/e2e.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 9090cbde..af59c292 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -18,3 +18,8 @@ // Alternatively you can use CommonJS syntax: // require('./commands') + +Cypress.on('uncaught:exception', (err, runnable) => { + // Do not fail the test. + return false +}) -- GitLab