mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 09:44:51 +01:00
Add test case for tiltedCylinder
This commit is contained in:
@@ -18,12 +18,22 @@ describe('newShapes', () => {
|
|||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('3: should render new FlowChart for New Shapes', () => {
|
it('3: should render new tiltedCylinder shape', () => {
|
||||||
|
imgSnapshotTest(
|
||||||
|
`flowchart
|
||||||
|
KS --> AC@{ shape: tiltedCylinder, label:"This is Final Label" }@
|
||||||
|
RE --> AC
|
||||||
|
`,
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
it('4: should render new FlowChart for New Shapes', () => {
|
||||||
renderGraph(
|
renderGraph(
|
||||||
`
|
`
|
||||||
flowchart
|
flowchart
|
||||||
A@{ shape: stateStart }@
|
A@{ shape: stateStart }@
|
||||||
B@{ shape: crossedCircle, label: "Start Defining Test Case" }@
|
B@{ shape: crossedCircle, label: "Start Defining Test Case" }@
|
||||||
|
C@{ shape: tiltedCylinder, label: "write your Test Case"}@
|
||||||
E@{ shape: waveRectangle, label: "Execute Test Case" }@
|
E@{ shape: waveRectangle, label: "Execute Test Case" }@
|
||||||
F@{ shape: slopedRect, label: "Test Passed?" }@
|
F@{ shape: slopedRect, label: "Test Passed?" }@
|
||||||
G@{ shape: bowTieRect, label: "Pass" }@
|
G@{ shape: bowTieRect, label: "Pass" }@
|
||||||
@@ -31,7 +41,8 @@ describe('newShapes', () => {
|
|||||||
I@{ shape: curvedTrapezoid, label: "End" }@
|
I@{ shape: curvedTrapezoid, label: "End" }@
|
||||||
|
|
||||||
A --> B
|
A --> B
|
||||||
B --> E
|
B --> C
|
||||||
|
C --> E
|
||||||
E --> F
|
E --> F
|
||||||
F -->|Yes| G
|
F -->|Yes| G
|
||||||
F -->|No| H
|
F -->|No| H
|
||||||
|
|||||||
Reference in New Issue
Block a user