From 53933d934d3bd011407fc605f9d441f84a0c887b Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 15 Oct 2020 17:45:19 +0200 Subject: [PATCH] --- .../integration/rendering/flowchart-v2.spec.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cypress/integration/rendering/flowchart-v2.spec.js b/cypress/integration/rendering/flowchart-v2.spec.js index fc35980bc..a08099aee 100644 --- a/cypress/integration/rendering/flowchart-v2.spec.js +++ b/cypress/integration/rendering/flowchart-v2.spec.js @@ -324,5 +324,23 @@ end {htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'} ); }); + it('59: handle styling of subgraphs and links', () => { + imgSnapshotTest( + ` + flowchart TD + A[Christmas] -->|Get money| B(Go shopping) + subgraph T ["Test"] + A + B + end + classDef Test fill:#F84E68,stroke:#333,color:white; + class A,T Test + classDef TestSub fill:green; + class T TestSub + linkStyle 0 color:orange, stroke: orange; + `, + {htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'} + ); + }); });