diff --git a/cypress/snapshots.js b/cypress/snapshots.js index f94d5e4a..e2663900 100644 --- a/cypress/snapshots.js +++ b/cypress/snapshots.js @@ -7,7 +7,7 @@ module.exports = { "1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":true,\"updateDiagram\":false}" } }, - "__version": "7.3.0", + "__version": "7.4.0", "Auto sync tests": { "should dim diagram when code is edited": { "1": "{\"code\":\"graph TD\\n A[Christmas] -->|Get money| B(Go shopping)\\n B --> C{Let me think}\\n C -->|One| D[Laptop]\\n C -->|Two| E[iPhone]\\n C -->|Three| F[fa:fa-car Car]\\n C --> Test\",\"mermaid\":\"{\\n \\\"theme\\\": \\\"default\\\"\\n}\",\"updateEditor\":false,\"autoSync\":false,\"updateDiagram\":false}" diff --git a/cypress/support/index.js b/cypress/support/index.js index 01ff920f..6e3de8ab 100644 --- a/cypress/support/index.js +++ b/cypress/support/index.js @@ -18,10 +18,10 @@ import './commands'; // Alternatively you can use CommonJS syntax: // require('./commands') -const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/; + Cypress.on('uncaught:exception', (err) => { /* returning false here prevents Cypress from failing the test */ - if (resizeObserverLoopErrRe.test(err.message)) { + if (err.message.includes('ResizeObserver loop limit exceeded')) { return false; } });