File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,10 +73,12 @@ test.describe("Canvas tests", () => {
7373
7474 test ( `Validate unhide node functionality after hiding a node in canvas for ${ nodes [ 0 ] . nodeName } ` , async ( ) => {
7575 const codeGraph = await browser . createNewPage ( CodeGraph , urls . baseUrl ) ;
76+ await browser . setPageToFullScreen ( ) ;
7677 await codeGraph . selectGraph ( GRAPHRAG_SDK ) ;
77- const initialGraph = await codeGraph . getGraphNodes ( ) ;
78- const targetNode = findNodeByName ( initialGraph , nodes [ 0 ] . nodeName ) ;
79- await codeGraph . nodeClick ( targetNode . screenX , targetNode . screenY ) ;
78+ await codeGraph . fillSearchBar ( nodes [ 0 ] . nodeName ) ;
79+ await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
80+ await codeGraph . waitForCanvasAnimationToEnd ( ) ;
81+ await codeGraph . rightClickAtCanvasCenter ( ) ;
8082 await codeGraph . clickOnRemoveNodeViaElementMenu ( ) ;
8183 await codeGraph . clickOnUnhideNodesBtn ( ) ;
8284 const updatedGraph = await codeGraph . getGraphNodes ( ) ;
You can’t perform that action at this time.
0 commit comments