mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-16 18:54:12 +01:00
@@ -83,22 +83,25 @@ section Checkout from website
|
|||||||
{ journey: { useMaxWidth: true } }
|
{ journey: { useMaxWidth: true } }
|
||||||
);
|
);
|
||||||
|
|
||||||
let rightEdgeXInitial, leftEdgeXInitial, rightEdgeXFinal, leftEdgeXFinal, initialDifference, finalDifference;
|
let rightEdgeXInitial,
|
||||||
|
leftEdgeXInitial,
|
||||||
|
rightEdgeXFinal,
|
||||||
|
leftEdgeXFinal,
|
||||||
|
initialDifference,
|
||||||
|
finalDifference;
|
||||||
|
|
||||||
cy.contains('tspan', 'admin Exjjjnjjjj qwerty')
|
cy.contains('tspan', 'admin Exjjjnjjjj qwerty').then((textBox) => {
|
||||||
.invoke('getBBox')
|
const bbox = textBox[0].getBBox();
|
||||||
.then((bbox) => {
|
const rightEdge = bbox.x + bbox.width;
|
||||||
rightEdgeXInitial = bbox.x + bbox.width;
|
console.warn(rightEdge);
|
||||||
cy.log(`Right edge x-coordinate: ${rightEdgeXInitial}`);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.contains('div.label', 'Make preBuilt')
|
cy.get(':nth-child(14) > switch > foreignobject').then((rect) => {
|
||||||
.invoke('getBoundingClientRect')
|
console.warn(rect);
|
||||||
.then((rect) => {
|
//const leftEdgeXInitial = rect.left;
|
||||||
leftEdgeXInitial = rect.left;
|
// cy.log(`Left edge x-coordinate: ${leftEdgeXInitial}`);
|
||||||
cy.log(`Left edge x-coordinate: ${leftEdgeXInitial}`);
|
// initialDifference = leftEdgeXInitial - rightEdgeXInitial;
|
||||||
initialDifference = leftEdgeXInitial - rightEdgeXInitial;
|
// cy.log(`Initial Difference: ${initialDifference}`);
|
||||||
cy.log(`Initial Difference: ${initialDifference}`);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// renderGraph(
|
// renderGraph(
|
||||||
@@ -136,9 +139,5 @@ section Checkout from website
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
// expect(initialDifference).toEqual(finalDifference);
|
// expect(initialDifference).toEqual(finalDifference);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user