#945 Rendering of state descriptions

This commit is contained in:
Knut Sveidqvist
2019-09-29 15:50:43 +02:00
parent 3cffd1e3ed
commit 94afcfb6f9
4 changed files with 82 additions and 42 deletions

View File

@@ -42,4 +42,16 @@ describe('State diagram', () => {
);
cy.get('svg');
});
it('should render state descriptions', () => {
imgSnapshotTest(
`
stateDiagram
state "Long state description" as XState1
state "Another Long state description" as XState2
XState2 : New line
`,
{ logLevel: 0 }
);
cy.get('svg');
});
});