@@ -123,35 +123,19 @@ test(
123123 await page . waitForSelector ( '[data-testid="modal-title"]' , {
124124 timeout : 30000 ,
125125 } ) ;
126- await page . getByTestId ( "side_nav_options_all-templates" ) . click ( ) ;
127-
128- const basicPromptingHeading = page . getByRole ( "heading" , {
129- name : "Basic Prompting" ,
130- } ) ;
131- await basicPromptingHeading . waitFor ( { state : "visible" , timeout : 30000 } ) ;
132-
133- // Retry the template click if the canvas never mounts: on Windows CI the
134- // first click occasionally lands before the template grid is interactive.
135- let canvasMounted = false ;
136- const maxClickAttempts = 3 ;
137- for ( let attempt = 1 ; attempt <= maxClickAttempts ; attempt ++ ) {
138- await basicPromptingHeading . click ( ) ;
139- try {
140- await page . waitForSelector ( '[data-testid="canvas_controls_dropdown"]' , {
141- timeout : attempt === maxClickAttempts ? 240000 : 60000 ,
142- } ) ;
143- canvasMounted = true ;
144- break ;
145- } catch ( _error ) {
146- if ( attempt === maxClickAttempts ) throw _error ;
147- const modalStillOpen =
148- ( await page . getByTestId ( "modal-title" ) . count ( ) ) > 0 ;
149- if ( ! modalStillOpen ) throw _error ;
150- }
151- }
152- if ( ! canvasMounted ) {
153- throw new Error ( "canvas_controls_dropdown never appeared" ) ;
154- }
126+
127+ // Use blank-flow instead of the Basic Prompting template. The template
128+ // path provisions multiple components on the backend and, on Windows CI
129+ // shards under load, the new-flow canvas can stay un-mounted past 240s.
130+ // This cleanup test only needs *some* flow owned by the user, so a blank
131+ // flow is equivalent in scope while avoiding the Windows-specific stall.
132+ await page . waitForSelector ( '[data-testid="blank-flow"]' , {
133+ timeout : 30000 ,
134+ } ) ;
135+ await page . getByTestId ( "blank-flow" ) . click ( ) ;
136+ await page . waitForSelector ( '[data-testid="canvas_controls_dropdown"]' , {
137+ timeout : 60000 ,
138+ } ) ;
155139
156140 await renameFlow ( page , { flowName : userAFlowName } ) ;
157141
0 commit comments