diff --git a/.gitignore b/.gitignore index 498d78edc..31c1fdc45 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ yarn-error.log token package-lock.json +cypress/platform/current.html \ No newline at end of file diff --git a/cypress/integration/rendering/stateDiagram.spec.js b/cypress/integration/rendering/stateDiagram.spec.js index 3e0bf1e1c..db257f76c 100644 --- a/cypress/integration/rendering/stateDiagram.spec.js +++ b/cypress/integration/rendering/stateDiagram.spec.js @@ -319,7 +319,7 @@ describe('State diagram', () => { } ); }); - it('Simplest compone state', () => { + it('Simplest composit state', () => { imgSnapshotTest( ` stateDiagram @@ -332,5 +332,17 @@ describe('State diagram', () => { } ); }); + it('should handle multiple arrows from one node to another', () => { + imgSnapshotTest( + ` + stateDiagram + a --> b: Start + a --> b: Stop + `, + { + logLevel: 0, + } + ); + }); }); diff --git a/cypress/platform/current.html b/cypress/platform/current.html index d2e48875c..a5c6d2bec 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -5,33 +5,28 @@ rel="stylesheet" />