Skip to content

Commit 867484a

Browse files
committed
Revert "temp: Remove tests to check if cypress passes"
This reverts commit b0b76ef.
1 parent 5ea7088 commit 867484a

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { imgSnapshotTest } from '../../helpers/util.ts';
2+
3+
const themes = ['default', 'forest', 'dark', 'base', 'neutral'];
4+
5+
themes.forEach((theme, index) => {
6+
describe('Flowchart Icon', () => {
7+
it(`${index + 1}-icon: verify if icons are working from fontawesome library ${theme} theme`, () => {
8+
imgSnapshotTest(
9+
`flowchart TD
10+
A("fab:fa-twitter Twitter") --> B("fab:fa-facebook Facebook")
11+
B --> C("fa:fa-coffee Coffee")
12+
C --> D("fa:fa-car Car")
13+
D --> E("fab:fa-github GitHub")
14+
`,
15+
{ theme }
16+
);
17+
});
18+
});
19+
});
20+
21+
themes.forEach((theme, index) => {
22+
describe('Flowchart Icon', () => {
23+
it(`${index + 1}-icon: verify if registered icons are working on ${theme} theme`, () => {
24+
imgSnapshotTest(
25+
`flowchart TD
26+
A("fa:fa-bell Bell")
27+
`,
28+
{ theme }
29+
);
30+
});
31+
});
32+
});

cypress/integration/rendering/flowchart-v2.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('Flowchart v2', () => {
8686
B --> C{Let me think}
8787
C -->|One| D[Laptop]
8888
C -->|Two| E[iPhone]
89-
C -->|Three| F[fa:fa-car Car]
89+
C -->|Three| F[Car]
9090
`,
9191
{ flowchart: { useMaxWidth: true } }
9292
);
@@ -109,7 +109,7 @@ describe('Flowchart v2', () => {
109109
B --> C{Let me think}
110110
C -->|One| D[Laptop]
111111
C -->|Two| E[iPhone]
112-
C -->|Three| F[fa:fa-car Car]
112+
C -->|Three| F[Car]
113113
`,
114114
{ flowchart: { useMaxWidth: false } }
115115
);

0 commit comments

Comments
 (0)