Skip to content

Commit

Permalink
Merge pull request #1599 from jgreywolf/1181-AssignCssClass
Browse files Browse the repository at this point in the history
1181 assign css class
  • Loading branch information
knsv authored Aug 5, 2020
2 parents 2a1161b + 8aa0185 commit b99c14b
Show file tree
Hide file tree
Showing 15 changed files with 326 additions and 99,460 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ dist/sequenceTest.html
.vscode/
cypress/platform/current.html
cypress/platform/experimental.html
local/
local/
48 changes: 48 additions & 0 deletions cypress/integration/rendering/classDiagram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,52 @@ describe('Class diagram', () => {
);
cy.get('svg');
});

it('13: should render a simple class diagram with css classes applied', () => {
imgSnapshotTest(
`
classDiagram
class Class10 {
int[] id
List~int~ ids
test(List~int~ ids) List~bool~
testArray() bool[]
}
cssClass "Class10" exClass
`,
{}
);
cy.get('svg');
});

it('14: should render a simple class diagram with css classes applied directly', () => {
imgSnapshotTest(
`
classDiagram
class Class10:::exClass {
int[] id
List~int~ ids
test(List~int~ ids) List~bool~
testArray() bool[]
}
`,
{}
);
cy.get('svg');
});

it('15: should render a simple class diagram with css classes applied two multiple classes', () => {
imgSnapshotTest(
`
classDiagram
class Class10
class Class20
cssClass "Class10, class20" exClass
`,
{}
);
cy.get('svg');
});
});
41 changes: 0 additions & 41 deletions dist/info.html

This file was deleted.

Loading

0 comments on commit b99c14b

Please sign in to comment.