From 36f298924918941b462aa4b25bc08e6c5f40442a Mon Sep 17 00:00:00 2001 From: saurabhg772244 Date: Tue, 20 Aug 2024 12:48:57 +0530 Subject: [PATCH] Updated test case --- .../integration/rendering/newShapes.spec.ts | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/cypress/integration/rendering/newShapes.spec.ts b/cypress/integration/rendering/newShapes.spec.ts index ea864a20a..f9aa427d5 100644 --- a/cypress/integration/rendering/newShapes.spec.ts +++ b/cypress/integration/rendering/newShapes.spec.ts @@ -26,10 +26,24 @@ const newShapesSet3 = [ 'crossedCircle', ] as const; -const newShapesSet4 = ['waveRectangle', 'trapezoidalPentagon', 'linedCylinder'] as const; +const newShapesSet4 = [ + 'waveRectangle', + 'trapezoidalPentagon', + 'linedCylinder', + 'waveEdgedRectangle', + 'multiWaveEdgedRectangle', +] as const; + +const newShapesSet5 = ['linedWaveEdgedRect', 'taggedWaveEdgedRectangle']; // Aggregate all shape sets into a single array -const newShapesSets = [newShapesSet1, newShapesSet2, newShapesSet3, newShapesSet4] as const; +const newShapesSets = [ + newShapesSet1, + newShapesSet2, + newShapesSet3, + newShapesSet4, + newShapesSet5, +] as const; looks.forEach((look) => { directions.forEach((direction) => { @@ -72,7 +86,11 @@ looks.forEach((look) => { newShapesSet.forEach((newShape, index) => { flowchartCode += ` n${index} --> n${index}${index}@{ shape: ${newShape}, label: 'This is **bold**
and strong' }@\n`; }); - imgSnapshotTest(flowchartCode, { look, htmlLabels: false }); + imgSnapshotTest(flowchartCode, { + look, + htmlLabels: false, + flowchart: { htmlLabels: false }, + }); }); it(`with styles`, () => {