Fix flowchart-elk render test

This commit is contained in:
Sidharth Vinod
2024-03-23 15:12:48 +05:30
parent 100123b43e
commit 8f8e4806a9
2 changed files with 5 additions and 2 deletions

View File

@@ -853,7 +853,8 @@ describe('Title and arrow styling #4813', () => {
title: ${titleString}
---
flowchart LR
A-->B`,
A-->B
A-->C`,
{ flowchart: { defaultRenderer: 'elk' } }
);
cy.get('svg').should((svg) => {
@@ -874,6 +875,7 @@ 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');