-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docs, added visual regression test
- Loading branch information
1 parent
8857e77
commit 16573d9
Showing
8 changed files
with
63 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { imgSnapshotTest } from '../../helpers/util.ts'; | ||
|
||
const themes = ['default', 'forest', 'dark', 'base', 'neutral']; | ||
|
||
themes.forEach((theme, index) => { | ||
describe('Flowchart Icon', () => { | ||
it(`${index + 1}-icon: verify if icons are working from fontawesome library ${theme} theme`, () => { | ||
imgSnapshotTest( | ||
`flowchart TD | ||
A("fab:fa-twitter Twitter") --> B("fab:fa-facebook Facebook") | ||
B --> C("fa:fa-coffee Coffee") | ||
C --> D("fa:fa-car Car") | ||
D --> E("fab:fa-github GitHub") | ||
`, | ||
{ theme } | ||
); | ||
}); | ||
}); | ||
}); | ||
|
||
themes.forEach((theme, index) => { | ||
describe('Flowchart Icon', () => { | ||
it(`${index + 1}-icon: verify if registered icons are working on ${theme} theme`, () => { | ||
imgSnapshotTest( | ||
`flowchart TD | ||
A("fa:fa-bell Bell") | ||
`, | ||
{ theme } | ||
); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters