@@ -23,11 +23,8 @@ test.describe("Node details panel tests", () => {
2323 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
2424 await codeGraph . selectGraph ( GRAPH_ID ) ;
2525 const graphData = await codeGraph . getGraphDetails ( ) ;
26- const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
27- console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
2826 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
2927 const targetNode = findNodeByName ( convertCoordinates , node . nodeName ) ;
30- console . log ( "after test: " , targetNode . screenX , " " , targetNode . screenY ) ;
3128 expect ( targetNode ) . toBeDefined ( ) ;
3229 await codeGraph . nodeClick ( targetNode . screenX , targetNode . screenY ) ;
3330 await codeGraph . clickOnViewNode ( ) ;
@@ -40,11 +37,8 @@ test.describe("Node details panel tests", () => {
4037 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
4138 await codeGraph . selectGraph ( GRAPH_ID ) ;
4239 const graphData = await codeGraph . getGraphDetails ( ) ;
43- const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
44- console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
4540 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
4641 const node1 = findNodeByName ( convertCoordinates , node . nodeName ) ;
47- console . log ( "after test: " , node1 . screenX , " " , node1 . screenY ) ;
4842 await codeGraph . nodeClick ( node1 . screenX , node1 . screenY ) ;
4943 await codeGraph . clickOnViewNode ( ) ;
5044 await codeGraph . clickOnNodeDetailsCloseBtn ( ) ;
@@ -57,11 +51,8 @@ test.describe("Node details panel tests", () => {
5751 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
5852 await codeGraph . selectGraph ( GRAPH_ID ) ;
5953 const graphData = await codeGraph . getGraphDetails ( ) ;
60- const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
61- console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
6254 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
6355 const node1 = findNodeByName ( convertCoordinates , node . nodeName ) ;
64- console . log ( "after test: " , node1 . screenX , " " , node1 . screenY ) ;
6556 await codeGraph . nodeClick ( node1 . screenX , node1 . screenY ) ;
6657 expect ( await codeGraph . getNodeDetailsHeader ( ) ) . toContain ( node . nodeName . toUpperCase ( ) )
6758 } )
@@ -72,11 +63,8 @@ test.describe("Node details panel tests", () => {
7263 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
7364 await codeGraph . selectGraph ( GRAPH_ID ) ;
7465 const graphData = await codeGraph . getGraphDetails ( ) ;
75- const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
76- console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
7766 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
7867 const nodeData = findNodeByName ( convertCoordinates , node . nodeName ) ;
79- console . log ( "after test: " , nodeData . screenX , " " , nodeData . screenY ) ;
8068 await codeGraph . nodeClick ( nodeData . screenX , nodeData . screenY ) ;
8169 await codeGraph . clickOnViewNode ( ) ;
8270 const result = await codeGraph . clickOnCopyToClipboardNodePanelDetails ( ) ;
@@ -91,13 +79,9 @@ test.describe("Node details panel tests", () => {
9179 test ( `Validate view node panel keys via api for ${ node . nodeName } ` , async ( ) => {
9280 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
9381 await codeGraph . selectGraph ( GRAPH_ID ) ;
94- const graphData = await codeGraph . getGraphDetails ( ) ;
95- const nod = findNodeByName ( graphData . elements . nodes , node . nodeName ) ;
96- console . log ( "before x:" , nod . x , " before y: " , nod . y ) ;
97-
82+ const graphData = await codeGraph . getGraphDetails ( ) ;
9883 const convertCoordinates = await codeGraph . transformNodeCoordinates ( graphData ) ;
9984 const node1 = findNodeByName ( convertCoordinates , node . nodeName ) ;
100- console . log ( "after test: " , node1 . screenX , " " , node1 . screenY ) ;
10185 const api = new ApiCalls ( ) ;
10286 const response = await api . getProject ( PROJECT_NAME ) ;
10387 const data : any = response . result . entities . nodes ;
0 commit comments