#945 Some bug fixes and draft docs

This commit is contained in:
Knut Sveidqvist
2019-10-09 20:05:24 +02:00
parent fe1e09f06b
commit 54e6e2f66e
7 changed files with 303 additions and 12 deletions

View File

@@ -13,6 +13,17 @@ describe('State diagram', () => {
);
cy.get('svg');
});
it('should render a single state with short descr', () => {
imgSnapshotTest(
`
stateDiagram
state "A long long name" as long1
state "A" as longlonglongid
`,
{ logLevel: 0 }
);
cy.get('svg');
});
it('should render a state with a note', () => {
imgSnapshotTest(
`
@@ -145,7 +156,7 @@ describe('State diagram', () => {
Off --> On : Turn on
}
TV--> Console : KarlMartin
TV--> Console
state Console {
[*] --> Off2: Off to start with