mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-18 15:56:43 +02:00
revised current cypress test
Co-authored-by: Shahir Ahmed <ahmeds@dickinson.edu>
This commit is contained in:
@@ -124,12 +124,10 @@ section Checkout from website
|
|||||||
let LabelEndX, diagramStartX;
|
let LabelEndX, diagramStartX;
|
||||||
|
|
||||||
// Get right edge of the legend
|
// Get right edge of the legend
|
||||||
cy.contains('tspan', 'Darkoob userf deliberately increasing the size of this label').then(
|
cy.contains('tspan', 'Darkoob userf').then((textBox) => {
|
||||||
(textBox) => {
|
const bbox = textBox[0].getBBox();
|
||||||
const bbox = textBox[0].getBBox();
|
LabelEndX = bbox.x + bbox.width;
|
||||||
LabelEndX = bbox.x + bbox.width;
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// Get left edge of the diagram
|
// Get left edge of the diagram
|
||||||
cy.contains('foreignobject', 'Make preBuilt').then((rect) => {
|
cy.contains('foreignobject', 'Make preBuilt').then((rect) => {
|
||||||
|
Reference in New Issue
Block a user