Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 8, 2023
commit 1d2245e2bfd0e1763f59f01db8ae67864005548e
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
})