diff --git a/cypress/integration/rendering/classDiagram.spec.js b/cypress/integration/rendering/classDiagram.spec.js index 33af313ae3..0de1183f1b 100644 --- a/cypress/integration/rendering/classDiagram.spec.js +++ b/cypress/integration/rendering/classDiagram.spec.js @@ -468,7 +468,7 @@ describe('Class diagram', () => { }); it('should handle notes with anchor tag having target attribute', () => { - renderGraph( + imgSnapshotTest( `classDiagram class test { } note for test "note about mermaid"` diff --git a/cypress/integration/rendering/sequencediagram.spec.js b/cypress/integration/rendering/sequencediagram.spec.js index c66fe3c110..f47d479280 100644 --- a/cypress/integration/rendering/sequencediagram.spec.js +++ b/cypress/integration/rendering/sequencediagram.spec.js @@ -783,7 +783,7 @@ context('Sequence diagram', () => { }); context('links', () => { it('should support actor links', () => { - renderGraph( + imgSnapshotTest( ` sequenceDiagram link Alice: Dashboard @ https://dashboard.contoso.com/alice @@ -954,7 +954,7 @@ context('Sequence diagram', () => { return false; }); - renderGraph([ + imgSnapshotTest([ `sequenceDiagram Alice->>Bob: Hello Bob, how are you ? Bob->>Alice: Fine, thank you. And you?