mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-21 01:06:43 +02:00
Compare commits
2 Commits
mermaid@11
...
testE2E
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8a8893beaa | ||
![]() |
2de72f6629 |
@@ -19,7 +19,7 @@ describe('Class diagram', () => {
|
|||||||
Class07 : Object[] elementData
|
Class07 : Object[] elementData
|
||||||
Class01 : size()
|
Class01 : size()
|
||||||
Class01 : int chimp
|
Class01 : int chimp
|
||||||
Class01 : int gorilla
|
Class01 : int gorillaGorilla
|
||||||
Class01 : -int privateChimp
|
Class01 : -int privateChimp
|
||||||
Class01 : +int publicGorilla
|
Class01 : +int publicGorilla
|
||||||
Class01 : #int protectedMarmoset
|
Class01 : #int protectedMarmoset
|
||||||
|
@@ -8,7 +8,6 @@ describe('Flowchart v2', () => {
|
|||||||
B --> C{Let me think}
|
B --> C{Let me think}
|
||||||
C -->|One| D[Laptop]
|
C -->|One| D[Laptop]
|
||||||
C -->|Two| E[iPhone]
|
C -->|Two| E[iPhone]
|
||||||
C -->|Three| F[fa:fa-car Car]
|
|
||||||
`,
|
`,
|
||||||
{}
|
{}
|
||||||
);
|
);
|
||||||
|
@@ -51,7 +51,7 @@ describe('pie chart', () => {
|
|||||||
it('should render a pie diagram when useMaxWidth is false', () => {
|
it('should render a pie diagram when useMaxWidth is false', () => {
|
||||||
renderGraph(
|
renderGraph(
|
||||||
`pie title Sports in Sweden
|
`pie title Sports in Sweden
|
||||||
"Bandy": 40
|
"Bandy": 140
|
||||||
"Ice-Hockey": 80
|
"Ice-Hockey": 80
|
||||||
"Football": 90
|
"Football": 90
|
||||||
`,
|
`,
|
||||||
|
@@ -5,8 +5,8 @@ describe('State diagram', () => {
|
|||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`
|
`
|
||||||
stateDiagram
|
stateDiagram
|
||||||
[*] --> State1
|
[*] --> State122
|
||||||
State1 --> [*]
|
State122 --> [*]
|
||||||
`,
|
`,
|
||||||
{ logLevel: 0, fontFamily: 'courier' }
|
{ logLevel: 0, fontFamily: 'courier' }
|
||||||
);
|
);
|
||||||
@@ -18,7 +18,7 @@ describe('State diagram', () => {
|
|||||||
stateDiagram
|
stateDiagram
|
||||||
|
|
||||||
[*] --> S1
|
[*] --> S1
|
||||||
state "Some long name" as S1
|
state "Some long names" as S1
|
||||||
`,
|
`,
|
||||||
{ logLevel: 0, fontFamily: 'courier' }
|
{ logLevel: 0, fontFamily: 'courier' }
|
||||||
);
|
);
|
||||||
|
@@ -26,12 +26,4 @@
|
|||||||
|
|
||||||
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
|
||||||
|
|
||||||
addMatchImageSnapshotCommand({
|
addMatchImageSnapshotCommand();
|
||||||
comparisonMethod: 'ssim',
|
|
||||||
failureThreshold: 0.01,
|
|
||||||
failureThresholdType: 'percent',
|
|
||||||
customDiffConfig: {
|
|
||||||
ssim: 'fast',
|
|
||||||
},
|
|
||||||
blur: 1,
|
|
||||||
});
|
|
||||||
|
Reference in New Issue
Block a user