diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 3f4be4f5ce8..a9f1ab8aec2 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -23,31 +23,4 @@ Cypress.on('window:before:load', (win) => { before(() => { chai.use(chaiExtension) - - Cypress.on('uncaught:exception', (err) => { - if (err.message.includes('ResizeObserver')) { - return false - } - - if (err.message.includes('clearFocusTrap')) { - return false - } - - return true - }) -}) - -Cypress.on('uncaught:exception', (err, runnable) => { - // Old files scripts attempt to iterate through views - // which do not exist anymore since 28. - // TODO: Remove this once - // https://github.com/nextcloud/server/pull/40065 - // is merged. - if ( - err.message.includes("Cannot read properties of undefined (reading 'views')") - ) { - return false - } - // we still want to ensure there are no other unexpected - // errors, so we let them fail the test })