Adding image test for failing testcase

This commit is contained in:
Knut Sveidqvist 2021-04-29 19:27:04 +02:00
parent ce84278f10
commit a9f14d9ffe
1 changed files with 19 additions and 0 deletions

View File

@ -354,6 +354,25 @@ describe('State diagram', () => {
}
);
});
it('v2 handle transition from one state in a composite state to a composite state', () => {
imgSnapshotTest(
`
stateDiagram-v2
state S1 {
sub1 -->sub2
}
state S2 {
sub4
}
S1 --> S2
sub1 --> sub4
`,
{
logLevel: 0, fontFamily: 'courier',
}
);
});
it('v2 should render a state diagram when useMaxWidth is true (default)', () => {
renderGraph(
`