2
0

fix(tests): 💚 Fix e2e window reload bug

This commit is contained in:
Baptiste Arnaud
2022-01-08 08:38:39 +01:00
parent 47162cb28a
commit 8391bcce5e
5 changed files with 32 additions and 15 deletions

View File

@ -38,6 +38,12 @@ declare global {
}
}
Cypress.on('uncaught:exception', (err) => {
if (err.message.includes('ResizeObserver loop limit exceeded')) {
return false
}
})
// Import commands.js using ES2015 syntax:
import '@testing-library/cypress/add-commands'
import 'cypress-file-upload'