diff --git a/cypress/integration/rendering/stateDiagram-v2.spec.js b/cypress/integration/rendering/stateDiagram-v2.spec.js index 606a1a3f5..29635b27c 100644 --- a/cypress/integration/rendering/stateDiagram-v2.spec.js +++ b/cypress/integration/rendering/stateDiagram-v2.spec.js @@ -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')); diff --git a/cypress/integration/rendering/stateDiagram.spec.js b/cypress/integration/rendering/stateDiagram.spec.js index 9be1f2322..aaa2dde4c 100644 --- a/cypress/integration/rendering/stateDiagram.spec.js +++ b/cypress/integration/rendering/stateDiagram.spec.js @@ -338,7 +338,7 @@ describe('State diagram', () => { [*] --> State1 State1 --> [*] `, - { state: { useMaxWidth: true } } + { state: { useMaxWidth: true }, look: 'classic', theme: 'default' } ); cy.get('svg').should((svg) => { expect(svg).to.have.attr('width', '100%'); @@ -361,7 +361,7 @@ describe('State diagram', () => { [*] --> State1 State1 --> [*] `, - { state: { useMaxWidth: false } } + { state: { useMaxWidth: false }, look: 'classic', theme: 'default' } ); cy.get('svg').should((svg) => { // const height = parseFloat(svg.attr('height'));