diff --git a/cypress/integration/rendering/stateDiagram-v2.spec.js b/cypress/integration/rendering/stateDiagram-v2.spec.js index c2490f65fc..1b230c56fc 100644 --- a/cypress/integration/rendering/stateDiagram-v2.spec.js +++ b/cypress/integration/rendering/stateDiagram-v2.spec.js @@ -347,6 +347,19 @@ describe('State diagram', () => { } ); }); + it('v2 width of compond state should grow with title if title is wider', () => { + imgSnapshotTest( + ` +stateDiagram-v2 + state "Long state name" as NotShooting { + a-->b + } + `, + { + logLevel: 0, + } + ); + }); it('v2 Simplest composite state', () => { imgSnapshotTest( ` diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html index bfb1f63a77..cbef7c3a03 100644 --- a/cypress/platform/knsv.html +++ b/cypress/platform/knsv.html @@ -55,7 +55,7 @@ class T TestSub linkStyle 0,1 color:orange, stroke: orange; -