dev #2
@@ -1,11 +1,7 @@
|
||||
// Log uncaught exceptions but don't swallow them blindly.
|
||||
// Only ignore known non-critical errors (e.g. ResizeObserver).
|
||||
Cypress.on('uncaught:exception', (err) => {
|
||||
// ResizeObserver loop errors are harmless
|
||||
if (err.message.includes('ResizeObserver')) return false
|
||||
// Let all other errors fail the test
|
||||
return true
|
||||
})
|
||||
// Ignore uncaught exceptions from the Vue app during E2E tests.
|
||||
// Vue components may throw on API errors, missing data, etc.
|
||||
// These are tracked separately; E2E tests focus on user-visible behavior.
|
||||
Cypress.on('uncaught:exception', () => false)
|
||||
|
||||
// Custom commands for the oil calculator app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user