From 844f9d96e75ed3713b5a7ddadd337815a56d66b0 Mon Sep 17 00:00:00 2001 From: Ibrahim Wassouf Date: Sat, 29 Jul 2023 22:16:28 -0300 Subject: [PATCH] Update and add new imgSnapshotTest --- cypress/integration/rendering/flowchart.spec.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cypress/integration/rendering/flowchart.spec.js b/cypress/integration/rendering/flowchart.spec.js index 3f7368a3a..1ae10aba9 100644 --- a/cypress/integration/rendering/flowchart.spec.js +++ b/cypress/integration/rendering/flowchart.spec.js @@ -895,8 +895,8 @@ graph TD imgSnapshotTest( ` graph TD - classDef default fill:#000,stroke:#000,stroke-width:4px,color:#fff - default --> default2 + classDef default fill:#a34,stroke:#000,stroke-width:4px,color:#fff + hello --> default `, { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' } ); @@ -907,4 +907,16 @@ graph TD a_node("This has an escaped \\" in it") -- "edge string can escape too \\"" --> b_node `); }); + it('68: should be able to style default node independently', () => { + imgSnapshotTest( + ` + flowchart TD + classDef default fill:#a34 + hello --> default + + style default stroke:#000,stroke-width:4px + `, + { htmlLabels: true, flowchart: { htmlLabels: true }, securityLevel: 'loose' } + ); + }); });