@@ -114,19 +114,25 @@ export async function assertAutomationInput(context: LiveContext): Promise<void>
114114 verifyCommand ( context , C . find , 'find reports the automation heading' ) ;
115115
116116 await assertElementTextAfterScrolling ( context , 'id="automation-press"' , 'Press canary' ) ;
117- for ( const identifier of [ 'automation-press' , 'automation-longpress' ] ) {
118- const inputVisible = await runStep ( context , `assert ${ identifier } is visible` , [
119- 'is' ,
120- 'visible' ,
121- `id="${ identifier } "` ,
122- ] ) ;
123- assert . equal ( inputVisible . json ?. data ?. pass , true , JSON . stringify ( inputVisible . json ) ) ;
124- }
117+ const pressVisible = await runStep ( context , 'assert automation-press is visible' , [
118+ 'is' ,
119+ 'visible' ,
120+ 'id="automation-press"' ,
121+ ] ) ;
122+ assert . equal ( pressVisible . json ?. data ?. pass , true , JSON . stringify ( pressVisible . json ) ) ;
125123
126124 await runStep ( context , 'press semantic canary' , [ 'press' , 'id="automation-press"' ] ) ;
127125 await assertWaitText ( context , 'Last input: press' ) ;
128126 verifyCommand ( context , C . press , 'semantic press changes the durable fixture canary' ) ;
129127
128+ await assertElementTextAfterScrolling ( context , 'id="automation-longpress"' , 'Long press canary' ) ;
129+ const longPressVisible = await runStep ( context , 'assert automation-longpress is visible' , [
130+ 'is' ,
131+ 'visible' ,
132+ 'id="automation-longpress"' ,
133+ ] ) ;
134+ assert . equal ( longPressVisible . json ?. data ?. pass , true , JSON . stringify ( longPressVisible . json ) ) ;
135+
130136 await runStep ( context , 'long press semantic canary' , [
131137 'longpress' ,
132138 'id="automation-longpress"' ,
0 commit comments