@@ -148,9 +148,14 @@ export async function assertAutomationInput(context: LiveContext): Promise<void>
148148 await assertWaitText ( context , 'Long presses: 1' ) ;
149149 verifyCommand ( context , C . longPress , '800ms hold increments the long-press counter' ) ;
150150
151- await runStep ( context , 'scroll native alert canary into view' , [ 'scroll' , 'down' , '1' ] ) ;
151+ await assertElementTextAfterScrolling (
152+ context ,
153+ 'id="automation-open-alert"' ,
154+ 'Open automation alert' ,
155+ ) ;
152156 await runStep ( context , 'open native alert' , [ 'click' , 'id="automation-open-alert"' ] ) ;
153- const alert = await runStep ( context , 'wait for native alert' , [ 'alert' , 'wait' , '5000' ] ) ;
157+ await assertWaitText ( context , 'Alert result: opened' ) ;
158+ const alert = await runStep ( context , 'wait for native alert' , [ 'alert' , 'wait' , '10000' ] ) ;
154159 assertJsonContains ( alert , 'Automation confirmation' , 'alert wait should return fixture alert' ) ;
155160 await runStep ( context , 'inspect native alert' , [ 'alert' , 'get' ] ) ;
156161 await runStep ( context , 'dismiss native alert' , [ 'alert' , 'dismiss' ] ) ;
0 commit comments