@@ -58,8 +58,11 @@ test.describe("Canvas tests", () => {
5858 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
5959 await codeGraph . selectGraph ( GRAPH_ID ) ;
6060 const initialGraph = await codeGraph . getGraphDetails ( ) ;
61+ const nod = findNodeByName ( initialGraph . elements . nodes , node . nodeName ) ;
62+ console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
6163 const convertCoordinates = await codeGraph . transformNodeCoordinates ( initialGraph ) ;
6264 const targetNode = findNodeByName ( convertCoordinates , node . nodeName ) ;
65+ console . log ( "after test: " , targetNode . screenX , " " , targetNode . screenY ) ;
6366 await codeGraph . nodeClick ( targetNode . screenX , targetNode . screenY ) ;
6467 await codeGraph . clickOnRemoveNodeViaElementMenu ( ) ;
6568 const updatedGraph = await codeGraph . getGraphDetails ( ) ;
@@ -73,8 +76,11 @@ test.describe("Canvas tests", () => {
7376 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
7477 await codeGraph . selectGraph ( GRAPH_ID ) ;
7578 const initialGraph = await codeGraph . getGraphDetails ( ) ;
79+ const nod = findNodeByName ( initialGraph . elements . nodes , node . nodeName ) ;
80+ console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
7681 const convertCoordinates = await codeGraph . transformNodeCoordinates ( initialGraph ) ;
7782 const targetNode = findNodeByName ( convertCoordinates , node . nodeName ) ;
83+ console . log ( "after test: " , targetNode . screenX , " " , targetNode . screenY ) ;
7884 await codeGraph . nodeClick ( targetNode . screenX , targetNode . screenY ) ;
7985 await codeGraph . clickOnRemoveNodeViaElementMenu ( ) ;
8086 await codeGraph . clickOnUnhideNodesBtn ( ) ;
@@ -170,8 +176,11 @@ test.describe("Canvas tests", () => {
170176 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
171177 await codeGraph . selectGraph ( GRAPH_ID ) ;
172178 const graphData = await codeGraph . getGraphDetails ( ) ;
179+ const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
180+ console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
173181 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
174182 const targetNode = findNodeByName ( convertCoordinates , node . nodeName ) ;
183+ console . log ( "after x:" , targetNode . x , " after y: " , targetNode . y ) ;
175184 await codeGraph . nodeClick ( targetNode . screenX , targetNode . screenY ) ;
176185 const result = await codeGraph . clickOnCopyToClipboard ( ) ;
177186 const api = new ApiCalls ( ) ;
0 commit comments