mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
test(e2e): fix state diagram useMaxWidth
tests
These tests assume that we're using `look: classic, theme: default`, otherwise the widths are off. However, since3dc66a64c
(MC-1730 Making neo the default theme, 2024-08-06), `neo` is now the default look and theme in Alana Mermaid. Fixes:3dc66a64c7
This commit is contained in:
@@ -460,7 +460,7 @@ stateDiagram-v2
|
||||
[*] --> State1
|
||||
State1 --> [*]
|
||||
`,
|
||||
{ state: { useMaxWidth: true } }
|
||||
{ state: { useMaxWidth: true }, look: 'classic' }
|
||||
);
|
||||
cy.get('svg').should((svg) => {
|
||||
expect(svg).to.have.attr('width', '100%');
|
||||
@@ -482,7 +482,7 @@ stateDiagram-v2
|
||||
[*] --> State1
|
||||
State1 --> [*]
|
||||
`,
|
||||
{ state: { useMaxWidth: false } }
|
||||
{ state: { useMaxWidth: false }, look: 'classic' }
|
||||
);
|
||||
cy.get('svg').should((svg) => {
|
||||
// const height = parseFloat(svg.attr('height'));
|
||||
|
Reference in New Issue
Block a user