Skip to content

Commit

Permalink
Catch exception from flatmap-viewer which is crashing the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsurfer committed Jun 21, 2024
1 parent 7338f92 commit 05ce867
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cypress/support/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ Cypress.Commands.add('mount', (component, options = {}) => {

return mount(component, options);
});

Cypress.on('uncaught:exception', (err, runnable) => {
// we expect a flatmap-viewer error with message ''Graph.addNode'
// and don't want to fail the test so we return false
if (err.message.includes('Graph.addNode')) {
return false
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
})

0 comments on commit 05ce867

Please sign in to comment.