diff --git a/site/cypress/support/index.js b/site/cypress/support/index.js index 46a58b9e4..5cea4d3b6 100644 --- a/site/cypress/support/index.js +++ b/site/cypress/support/index.js @@ -19,3 +19,16 @@ import './commands' // Alternatively you can use CommonJS syntax: // require('./commands') + +const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/ +Cypress.on('uncaught:exception', (err) => { + /* + The error 'ResizeObserver loop limit exceeded' is benigne + Returning false here prevents Cypress from failing the test + + cf https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded + */ + if (resizeObserverLoopErrRe.test(err.message)) { + return false + } +})