From cef6273dcf781e69d61b8d0f1554f7ed2aaee3c8 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sun, 25 Apr 2021 12:27:51 +0200 Subject: [PATCH] Updated tests --- cypress/integration/rendering/journey.spec.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cypress/integration/rendering/journey.spec.js b/cypress/integration/rendering/journey.spec.js index a34f09e18..3a25071f5 100644 --- a/cypress/integration/rendering/journey.spec.js +++ b/cypress/integration/rendering/journey.spec.js @@ -54,7 +54,7 @@ section Checkout from website }); it('should render a user journey diagram when useMaxWidth is false', () => { - renderGraph( + imgSnapshotTest( `journey title E-Commerce section Order from website @@ -64,13 +64,5 @@ section Checkout from website `, { 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'); - }); }); });