test: ignore ChunkLoadError (#43512)
They only seem to occur during testing at the moment. If we get a user report, we can investigate, but until then they're a distraction.
This commit is contained in:
committed by
GitHub
parent
222fc3f255
commit
e9cc4e4d75
@ -18,3 +18,14 @@ import './commands';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
Cypress.on('uncaught:exception', err => {
|
||||
// Rapidly cy.visiting pages seems to cause an uncaught exception. This seems
|
||||
// to be a testing artifact, since users can't click fast enough to cause this
|
||||
// (to our knowledge).
|
||||
if (err.name === 'ChunkLoadError') {
|
||||
return false;
|
||||
}
|
||||
// We are still interested in other errors.
|
||||
return true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user