add basic render (cypress) test for classDiagram-v2 too

This commit is contained in:
Dima Kurilo 2022-10-17 12:33:23 -04:00
parent cead1f36f4
commit 75e11b1fde

View File

@ -478,4 +478,22 @@ describe('Class diagram V2', () => {
);
cy.get('svg');
});
it('18: should render a simple class diagram with notes', () => {
imgSnapshotTest(
`
classDiagram-v2
note "I love this diagram!\nDo you love it?"
class Class10 {
<<service>>
int id
size()
}
note for Class10 "Cool class\nI said it's very cool class!"
`,
{ logLevel: 1, flowchart: { htmlLabels: false } }
);
cy.get('svg');
});
});