From 61cfb156cc8637dc6e60341735993995a061a90f Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Mon, 12 Aug 2024 13:51:10 +0200 Subject: [PATCH] Fixed broken test --- cypress/integration/rendering/flowchart-elk.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress/integration/rendering/flowchart-elk.spec.js b/cypress/integration/rendering/flowchart-elk.spec.js index 2cf6e2092c..b5caef9733 100644 --- a/cypress/integration/rendering/flowchart-elk.spec.js +++ b/cypress/integration/rendering/flowchart-elk.spec.js @@ -895,11 +895,10 @@ describe('Title and arrow styling #4813', () => { ); cy.get('svg').should((svg) => { const edges = svg[0].querySelectorAll('.edges path'); - // console.log(edges); - expect(edges[0]).to.have.attr('pattern', 'solid'); - expect(edges[1]).to.have.attr('pattern', 'dotted'); - expect(edges[2]).to.have.css('stroke-width', '3.5px'); - expect(edges[3]).to.have.css('stroke-width', '1.5px'); + expect(edges[0].getAttribute('class')).to.contain('edge-pattern-solid'); + expect(edges[1].getAttribute('class')).to.contain('edge-pattern-dotted'); + expect(edges[2].getAttribute('class')).to.contain('edge-thickness-thick'); + expect(edges[3].getAttribute('class')).to.contain('edge-thickness-invisible'); }); }); });