diff --git a/cypress/integration/rendering/flowchart.spec.js b/cypress/integration/rendering/flowchart.spec.js
index 2c20090a4..60f6cfbe2 100644
--- a/cypress/integration/rendering/flowchart.spec.js
+++ b/cypress/integration/rendering/flowchart.spec.js
@@ -512,7 +512,7 @@ describe('Flowchart', () => {
);
});
- it('24.1: Keep node label text (if already defined) when a style is applied', () => {
+ it('24: Keep node label text (if already defined) when a style is applied', () => {
imgSnapshotTest(
`graph LR
A(( )) -->|step 1| B(( ))
@@ -524,7 +524,7 @@ describe('Flowchart', () => {
{ flowchart: { htmlLabels: false } }
);
});
-it('24.2: Handle link click events (link, anchor, mailto, other protocol, script)', () => {
+it('25: Handle link click events (link, anchor, mailto, other protocol, script)', () => {
imgSnapshotTest(
`graph TB
TITLE["Link Click Events
(click the nodes below)"]
@@ -544,11 +544,13 @@ it('24.2: Handle link click events (link, anchor, mailto, other protocol, script
);
});
- it('25: Set node text color according to style when html labels are enabled', () => {
+ it('26: Set text color of nodes and links according to styles when html labels are enabled', () => {
imgSnapshotTest(
`graph LR
- A[red
text] --> B(blue
text)
- C[/red
text/] --> D{blue
text}
+ A[red
text] -->|red
text| B(blue
text)
+ C[/red
text/] -->|blue
text| D{blue
text}
+ linkStyle 0 color:red;
+ linkStyle 1 stroke:DarkGray,stroke-width:2px,color:#0000ff
style A color:red;
style B color:blue;
style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
@@ -560,11 +562,13 @@ it('24.2: Handle link click events (link, anchor, mailto, other protocol, script
);
});
- it('26: Set node text color according to style when html labels are disabled', () => {
+ it('27: Set text color of nodes and links according to styles when html labels are disabled', () => {
imgSnapshotTest(
`graph LR
- A[red
text] --> B(blue
text)
- C[/red
text/] --> D{blue
text}
+ A[red
text] -->|red
text| B(blue
text)
+ C[/red
text/] -->|blue
text| D{blue
text}
+ linkStyle 0 color:red;
+ linkStyle 1 stroke:DarkGray,stroke-width:2px,color:#0000ff
style A color:red;
style B color:blue;
style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
diff --git a/dist/index.html b/dist/index.html
index 47293b4b6..9290199cc 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -371,8 +371,10 @@ graph TB