fix wrong config paramater in some cypress spec

- flowchart
- mindmap
This commit is contained in:
Yokozuna59
2023-06-27 20:58:39 +03:00
parent a2cf41c9c0
commit 48fc60f866
3 changed files with 24 additions and 25 deletions

View File

@@ -681,7 +681,7 @@ title: Simple flowchart
flowchart-elk TD flowchart-elk TD
A --> B A --> B
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('elk: should include classes on the edges', () => { it('elk: should include classes on the edges', () => {
@@ -710,7 +710,7 @@ flowchart-elk LR
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
classDef someclass fill:#f96 classDef someclass fill:#f96
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('With formatting in a node', () => { it('With formatting in a node', () => {
@@ -726,7 +726,7 @@ flowchart-elk LR
b --> d(The dog in the hog) b --> d(The dog in the hog)
c --> d c --> d
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('New line in node and formatted edge label', () => { it('New line in node and formatted edge label', () => {
@@ -736,7 +736,7 @@ flowchart-elk LR
b("\`The dog in **the** hog.(1) b("\`The dog in **the** hog.(1)
NL\`") --"\`1o **bold**\`"--> c NL\`") --"\`1o **bold**\`"--> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Wrapping long text with a new line', () => { it('Wrapping long text with a new line', () => {
@@ -749,7 +749,7 @@ Word!
Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`) --> c Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`) --> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Sub graphs and markdown strings', () => { it('Sub graphs and markdown strings', () => {
@@ -766,7 +766,7 @@ subgraph "\`**Two**\`"
end end
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
}); });
@@ -782,7 +782,7 @@ flowchart-elk LR
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
classDef someclass fill:#f96 classDef someclass fill:#f96
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('With formatting in a node', () => { it('With formatting in a node', () => {
@@ -798,7 +798,7 @@ flowchart-elk LR
b --> d(The dog in the hog) b --> d(The dog in the hog)
c --> d c --> d
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('New line in node and formatted edge label', () => { it('New line in node and formatted edge label', () => {
@@ -808,7 +808,7 @@ flowchart-elk LR
b("\`The dog in **the** hog.(1) b("\`The dog in **the** hog.(1)
NL\`") --"\`1o **bold**\`"--> c NL\`") --"\`1o **bold**\`"--> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Wrapping long text with a new line', () => { it('Wrapping long text with a new line', () => {
@@ -821,7 +821,7 @@ Word!
Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Sub graphs and markdown strings', () => { it('Sub graphs and markdown strings', () => {
@@ -838,7 +838,7 @@ subgraph "\`**Two**\`"
end end
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
}); });

View File

@@ -671,7 +671,7 @@ title: Simple flowchart
flowchart TD flowchart TD
A --> B A --> B
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('3192: It should be possieble to render flowcharts with invisible edges', () => { it('3192: It should be possieble to render flowcharts with invisible edges', () => {
@@ -682,7 +682,7 @@ title: Simple flowchart with invisible edges
flowchart TD flowchart TD
A ~~~ B A ~~~ B
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('4023: Should render html labels with images and-or text correctly', () => { it('4023: Should render html labels with images and-or text correctly', () => {
@@ -707,7 +707,7 @@ flowchart LR
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
classDef someclass fill:#f96 classDef someclass fill:#f96
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('With formatting in a node', () => { it('With formatting in a node', () => {
@@ -723,7 +723,7 @@ flowchart LR
b --> d(The dog in the hog) b --> d(The dog in the hog)
c --> d c --> d
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('New line in node and formatted edge label', () => { it('New line in node and formatted edge label', () => {
@@ -733,7 +733,7 @@ flowchart LR
b("\`The dog in **the** hog.(1) b("\`The dog in **the** hog.(1)
NL\`") --"\`1o **bold**\`"--> c NL\`") --"\`1o **bold**\`"--> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Wrapping long text with a new line', () => { it('Wrapping long text with a new line', () => {
@@ -746,7 +746,7 @@ Word!
Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Sub graphs and markdown strings', () => { it('Sub graphs and markdown strings', () => {
@@ -763,7 +763,7 @@ subgraph "\`**Two**\`"
end end
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
}); });
@@ -779,7 +779,7 @@ flowchart LR
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
classDef someclass fill:#f96 classDef someclass fill:#f96
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('With formatting in a node', () => { it('With formatting in a node', () => {
@@ -795,7 +795,7 @@ flowchart LR
b --> d(The dog in the hog) b --> d(The dog in the hog)
c --> d c --> d
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('New line in node and formatted edge label', () => { it('New line in node and formatted edge label', () => {
@@ -805,7 +805,7 @@ flowchart LR
b("\`The dog in **the** hog.(1) b("\`The dog in **the** hog.(1)
NL\`") --"\`1o **bold**\`"--> c NL\`") --"\`1o **bold**\`"--> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Wrapping long text with a new line', () => { it('Wrapping long text with a new line', () => {
@@ -818,7 +818,7 @@ Word!
Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. \`") --> c
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
it('Sub graphs and markdown strings', () => { it('Sub graphs and markdown strings', () => {
@@ -835,7 +835,7 @@ subgraph "\`**Two**\`"
end end
`, `,
{ titleTopMargin: 0 } { flowchart: { titleTopMargin: 0 } }
); );
}); });
}); });

View File

@@ -242,8 +242,7 @@ mindmap
a second line 😎\`] a second line 😎\`]
id2[\`The dog in **the** hog... a *very long text* about it id2[\`The dog in **the** hog... a *very long text* about it
Word!\`] Word!\`]
`, `
{ titleTopMargin: 0 }
); );
}); });
}); });