@@ -68,13 +68,14 @@ test.describe("Widget Functionality", () => {
6868 await interactWithWidget ( page , applyDownWidgetCellIndex , 'button:has-text("Cluster Apply")' , async ( button ) => {
6969 await button . click ( ) ;
7070
71- const successMessage = await page . waitForSelector ( 'text=Ray Cluster: \'widgettest\' has successfully been created' , { timeout : 10000 } ) ;
71+ // The apply() method prints "applied" not "created"
72+ const successMessage = await page . waitForSelector ( 'text=Ray Cluster: \'widgettest\' has successfully been applied' , { timeout : 30000 } ) ;
7273 expect ( successMessage ) . not . toBeNull ( ) ;
7374
74- const resourcesMessage = await page . waitForSelector ( 'text=Waiting for requested resources to be set up...' ) ;
75+ const resourcesMessage = await page . waitForSelector ( 'text=Waiting for requested resources to be set up...' , { timeout : 30000 } ) ;
7576 expect ( resourcesMessage ) . not . toBeNull ( ) ;
7677
77- const upAndRunningMessage = await page . waitForSelector ( 'text=Requested cluster is up and running!' , { timeout : 120000 } ) ;
78+ const upAndRunningMessage = await page . waitForSelector ( 'text=Requested cluster is up and running!' , { timeout : 180000 } ) ;
7879 expect ( upAndRunningMessage ) . not . toBeNull ( ) ;
7980
8081 // Note: Dashboard readiness check skipped for KinD environments without HTTPRoute/Route support
@@ -97,7 +98,7 @@ test.describe("Widget Functionality", () => {
9798
9899 await interactWithWidget ( page , applyDownWidgetCellIndex , 'button:has-text("Cluster Apply")' , async ( button ) => {
99100 await button . click ( ) ;
100- const successMessage = await page . waitForSelector ( 'text=Ray Cluster: \'widgettest-1\' has successfully been created ' , { timeout : 10000 } ) ;
101+ const successMessage = await page . waitForSelector ( 'text=Ray Cluster: \'widgettest-1\' has successfully been applied ' , { timeout : 30000 } ) ;
101102 expect ( successMessage ) . not . toBeNull ( ) ;
102103 } ) ;
103104
0 commit comments