From b451c66d7c4467c2170ccf34f29bf6b5b1b4e714 Mon Sep 17 00:00:00 2001 From: omkarht Date: Tue, 5 Aug 2025 19:43:34 +0530 Subject: [PATCH] chore: added test case for updated shapes on-behalf-of: @Mermaid-Chart --- .../rendering/flowchart-v2.spec.js | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/cypress/integration/rendering/flowchart-v2.spec.js b/cypress/integration/rendering/flowchart-v2.spec.js index 9ad2b5604..69ff10b00 100644 --- a/cypress/integration/rendering/flowchart-v2.spec.js +++ b/cypress/integration/rendering/flowchart-v2.spec.js @@ -1113,6 +1113,37 @@ end ); }); }); + describe('Flowchart Node Shape Rendering', () => { + it('should render a stadium-shaped node', () => { + imgSnapshotTest( + `flowchart TB + A(["Start"]) --> n1["Untitled Node"] + A --> n2["Untitled Node"] + `, + {} + ); + }); + it('should render a diamond-shaped node using shape config', () => { + imgSnapshotTest( + `flowchart BT + n2["Untitled Node"] --> n1["Diamond"] + n1@{ shape: diam} + `, + {} + ); + }); + it('should render a rounded rectangle and a normal rectangle', () => { + imgSnapshotTest( + `flowchart BT + n2["Untitled Node"] --> n1["Rounded Rectangle"] + n3["Untitled Node"] --> n1 + n1@{ shape: rounded} + n3@{ shape: rect} + `, + {} + ); + }); + }); it('6617: Per Link Curve Styling using edge Ids', () => { imgSnapshotTest(