@@ -4,6 +4,7 @@ import { adjustScreenView } from "../../utils/adjust-screen-view";
44import { awaitBootstrapTest } from "../../utils/await-bootstrap-test" ;
55import { initialGPTsetup } from "../../utils/initialGPTsetup" ;
66import { withEventDeliveryModes } from "../../utils/withEventDeliveryModes" ;
7+ import { disableInspectPanel } from "../../utils/open-advanced-options" ;
78
89// Add this line to declare Node.js global variables
910declare const process : any ;
@@ -21,6 +22,7 @@ withEventDeliveryModes(
2122 ! process ?. env ?. ASTRA_DB_APPLICATION_TOKEN ,
2223 "ASTRA_DB_APPLICATION_TOKEN required to run this test" ,
2324 ) ;
25+
2426 await awaitBootstrapTest ( page ) ;
2527
2628 await page . getByTestId ( "side_nav_options_all-templates" ) . click ( ) ;
@@ -34,6 +36,8 @@ withEventDeliveryModes(
3436
3537 await initialGPTsetup ( page ) ;
3638
39+ await disableInspectPanel ( page ) ;
40+
3741 await page . waitForSelector ( '[data-testid="title-Astra DB"]' , {
3842 timeout : 3000 ,
3943 } ) ;
@@ -259,9 +263,7 @@ withEventDeliveryModes(
259263 . getByText ( "This is a test file." , { exact : true } )
260264 . last ( )
261265 . isVisible ( ) ;
262- await page . getByText ( "Chat" , { exact : true } ) . last ( ) . click ( ) ;
263- await page . getByText ( "Default Session" ) . last ( ) . click ( ) ;
264- await page . getByRole ( "combobox" ) . click ( ) ;
266+ await page . getByTestId ( "chat-header-more-menu" ) . last ( ) . click ( ) ;
265267 await page . getByLabel ( "Message logs" ) . click ( ) ;
266268 await page . getByText ( "timestamp" , { exact : true } ) . last ( ) . isVisible ( ) ;
267269 await page . getByText ( "text" , { exact : true } ) . last ( ) . isVisible ( ) ;
@@ -270,8 +272,14 @@ withEventDeliveryModes(
270272 await page . getByText ( "session_id" , { exact : true } ) . last ( ) . isVisible ( ) ;
271273 await page . getByText ( "files" , { exact : true } ) . last ( ) . isVisible ( ) ;
272274 await page . getByRole ( "gridcell" ) . last ( ) . isVisible ( ) ;
273- await page . getByRole ( "combobox" ) . click ( ) ;
274- await page . getByLabel ( "Delete" ) . click ( ) ;
275+ await page . getByRole ( "checkbox" ) . first ( ) . click ( ) ;
276+ await page . getByTestId ( "delete-row-button" ) . last ( ) . click ( ) ;
277+ await page
278+ . getByText ( "No Data Available" , { exact : true } )
279+ . last ( )
280+ . isVisible ( ) ;
281+ await page . getByText ( "Close" ) . last ( ) . click ( ) ;
282+
275283 await page . waitForSelector ( '[data-testid="input-chat-playground"]' , {
276284 timeout : 60000 ,
277285 } ) ;
0 commit comments