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