mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
Fixed broken test
This commit is contained in:
@@ -895,11 +895,10 @@ describe('Title and arrow styling #4813', () => {
|
|||||||
);
|
);
|
||||||
cy.get('svg').should((svg) => {
|
cy.get('svg').should((svg) => {
|
||||||
const edges = svg[0].querySelectorAll('.edges path');
|
const edges = svg[0].querySelectorAll('.edges path');
|
||||||
// console.log(edges);
|
expect(edges[0].getAttribute('class')).to.contain('edge-pattern-solid');
|
||||||
expect(edges[0]).to.have.attr('pattern', 'solid');
|
expect(edges[1].getAttribute('class')).to.contain('edge-pattern-dotted');
|
||||||
expect(edges[1]).to.have.attr('pattern', 'dotted');
|
expect(edges[2].getAttribute('class')).to.contain('edge-thickness-thick');
|
||||||
expect(edges[2]).to.have.css('stroke-width', '3.5px');
|
expect(edges[3].getAttribute('class')).to.contain('edge-thickness-invisible');
|
||||||
expect(edges[3]).to.have.css('stroke-width', '1.5px');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user