From f1e7a4b184a95a26ec462abe01c476144bb204cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 12 Aug 2023 09:14:31 +0200 Subject: [PATCH] ci(cypress): Catch resize observer loop limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/support/e2e.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index b6ca34662..358fb9e21 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -16,5 +16,9 @@ // Import commands.js using ES2015 syntax: import './commands.js' +Cypress.on('uncaught:exception', (err) => { + return !err.message.includes('ResizeObserver loop limit exceeded'), +}) + // Alternatively you can use CommonJS syntax: // require('./commands')