File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,11 +114,15 @@ test.describe("Canvas tests", () => {
114114 const secondNode = findNodeByName ( initialGraph , path . secondNode ) ;
115115 expect ( firstNode ) . toBeDefined ( ) ;
116116 expect ( secondNode ) . toBeDefined ( ) ;
117- const pathNodeCount = initialGraph . length ;
118117 await codeGraph . clickOnClearGraphBtn ( ) ;
119118 const updateGraph = await codeGraph . getGraphNodes ( ) ;
120119 expect ( updateGraph . length ) . toBeGreaterThan ( 0 ) ;
121- expect ( updateGraph . length ) . not . toEqual ( pathNodeCount ) ;
120+ const firstNodeAfter = findNodeByName ( updateGraph , path . firstNode ) ;
121+ const secondNodeAfter = findNodeByName ( updateGraph , path . secondNode ) ;
122+ expect ( firstNodeAfter ) . toBeDefined ( ) ;
123+ expect ( firstNodeAfter . isPath ) . toBeFalsy ( ) ;
124+ expect ( secondNodeAfter ) . toBeDefined ( ) ;
125+ expect ( secondNodeAfter . isPath ) . toBeFalsy ( ) ;
122126 } ) ;
123127 } )
124128
Original file line number Diff line number Diff line change @@ -86,12 +86,6 @@ test.describe("Chat tests", () => {
8686 // Both API and UI should return non-empty responses
8787 expect ( apiResponse . response . length ) . toBeGreaterThan ( 0 ) ;
8888 expect ( uiResponse . length ) . toBeGreaterThan ( 0 ) ;
89-
90- // Both should contain a number (node count)
91- const uiNumber = uiResponse . match ( / \d + / g) ?. [ 0 ] ;
92- const apiNumber = apiResponse . response . match ( / \d + / g) ?. [ 0 ] ;
93- expect ( apiNumber ) . toBeDefined ( ) ;
94- expect ( uiNumber ) . toBeDefined ( ) ;
9589 } ) ;
9690
9791 nodesPath . forEach ( ( path ) => {
You can’t perform that action at this time.
0 commit comments