Skip to content
Merged
Prev Previous commit
Next Next commit
ci(cypress): Avoid failing on upstream console errors
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Sep 11, 2023
commit a229219c90df963cb605ec3c7ac994770d4e1229
12 changes: 12 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ Cypress.Screenshot.defaults({
overwrite: true,
capture: 'viewport',
})

Cypress.on('uncaught:exception', (err) => {
if (err.message.includes('ResizeObserver')) {
return false
}

if (err.message.includes('fetchpriority')) {
return false
}

return true
})