mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Updated tests
This commit is contained in:
parent
8c57df1945
commit
cef6273dcf
@ -54,7 +54,7 @@ section Checkout from website
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should render a user journey diagram when useMaxWidth is false', () => {
|
it('should render a user journey diagram when useMaxWidth is false', () => {
|
||||||
renderGraph(
|
imgSnapshotTest(
|
||||||
`journey
|
`journey
|
||||||
title E-Commerce
|
title E-Commerce
|
||||||
section Order from website
|
section Order from website
|
||||||
@ -64,13 +64,5 @@ section Checkout from website
|
|||||||
`,
|
`,
|
||||||
{ journey: { useMaxWidth: false } }
|
{ journey: { useMaxWidth: false } }
|
||||||
);
|
);
|
||||||
cy.get('svg')
|
|
||||||
.should((svg) => {
|
|
||||||
const height = parseFloat(svg.attr('height'));
|
|
||||||
const width = parseFloat(svg.attr('width'));
|
|
||||||
expect(height).to.eq(565);
|
|
||||||
expect(width).to.eq(700);
|
|
||||||
expect(svg).to.not.have.attr('style');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user