@@ -24,7 +24,7 @@ test.describe("Node details panel tests", () => {
2424 await browser . setPageToFullScreen ( ) ;
2525 await codeGraph . selectGraph ( GRAPHRAG_SDK ) ;
2626 await codeGraph . fillSearchBar ( node . nodeName ) ;
27- await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
27+ await codeGraph . selectSearchBarOption ( node . nodeName ) ;
2828 await codeGraph . waitForCanvasAnimationToEnd ( ) ;
2929 const graphData = await codeGraph . getGraphNodes ( ) ;
3030
@@ -42,7 +42,7 @@ test.describe("Node details panel tests", () => {
4242 await browser . setPageToFullScreen ( ) ;
4343 await codeGraph . selectGraph ( GRAPHRAG_SDK ) ;
4444 await codeGraph . fillSearchBar ( node . nodeName ) ;
45- await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
45+ await codeGraph . selectSearchBarOption ( node . nodeName ) ;
4646 await codeGraph . waitForCanvasAnimationToEnd ( ) ;
4747 const graphData = await codeGraph . getGraphNodes ( ) ;
4848 const targetNode = findNodeByName ( graphData , node . nodeName ) ;
@@ -60,7 +60,7 @@ test.describe("Node details panel tests", () => {
6060 await browser . setPageToFullScreen ( ) ;
6161 await codeGraph . selectGraph ( GRAPHRAG_SDK ) ;
6262 await codeGraph . fillSearchBar ( node . nodeName ) ;
63- await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
63+ await codeGraph . selectSearchBarOption ( node . nodeName ) ;
6464 await codeGraph . waitForCanvasAnimationToEnd ( ) ;
6565 const graphData = await codeGraph . getGraphNodes ( ) ;
6666 const targetNode = findNodeByName ( graphData , node . nodeName ) ;
@@ -79,7 +79,7 @@ test.describe("Node details panel tests", () => {
7979 const targetNode = graphData . find ( node => node . src ) || graphData [ 0 ] ;
8080 const nodeName = targetNode . name || targetNode . data ?. name ;
8181 await codeGraph . fillSearchBar ( nodeName ) ;
82- await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
82+ await codeGraph . selectSearchBarOption ( nodeName ) ;
8383 await codeGraph . waitForCanvasAnimationToEnd ( ) ;
8484
8585 await codeGraph . rightClickAtCanvasCenter ( ) ;
@@ -96,7 +96,7 @@ test.describe("Node details panel tests", () => {
9696 await browser . setPageToFullScreen ( ) ;
9797 await codeGraph . selectGraph ( GRAPHRAG_SDK ) ;
9898 await codeGraph . fillSearchBar ( node . nodeName ) ;
99- await codeGraph . selectSearchBarOptionBtn ( "1" ) ;
99+ await codeGraph . selectSearchBarOption ( node . nodeName ) ;
100100 await codeGraph . waitForCanvasAnimationToEnd ( ) ;
101101 const graphData = await codeGraph . getGraphNodes ( ) ;
102102 const targetNode = findNodeByName ( graphData , node . nodeName ) ;
0 commit comments