@@ -223,7 +223,7 @@ test('parseMaestroReplayFlow keeps focused inputText and pressKey Enter as separ
223223 assert . deepEqual ( parsed . actionLines , [ 3 , 4 , 5 ] ) ;
224224} ) ;
225225
226- test ( 'parseMaestroReplayFlow coalesces tapOn inputText without requiring Enter ' , ( ) => {
226+ test ( 'parseMaestroReplayFlow marks tapOn before inputText for snapshot tap focus ' , ( ) => {
227227 const parsed = parseMaestroReplayFlow ( `appId: com.callstack.agentdevicelab
228228---
229229- tapOn:
@@ -234,12 +234,11 @@ test('parseMaestroReplayFlow coalesces tapOn inputText without requiring Enter',
234234 assert . deepEqual (
235235 parsed . actions . map ( ( entry ) => [ entry . command , entry . positionals ] ) ,
236236 [
237- [ 'wait ' , [ 'id="editableNameInput"' , '30000 '] ] ,
238- [ 'fill ' , [ 'id="editableNameInput"' , 'Saved list' ] ] ,
237+ [ '__maestroTapOn ' , [ 'id="editableNameInput"' ] ] ,
238+ [ 'type ' , [ 'Saved list' ] ] ,
239239 ] ,
240240 ) ;
241- assert . deepEqual ( parsed . actionLines , [ 3 , 3 ] ) ;
242- assert . equal ( parsed . actions [ 1 ] ?. flags ?. maestro ?. allowNonHittableCoordinateFallback , true ) ;
241+ assert . equal ( parsed . actions [ 0 ] ?. flags ?. maestro ?. allowNonHittableCoordinateFallback , undefined ) ;
243242} ) ;
244243
245244test ( 'parseMaestroReplayFlow coalesces tapOn inputText while preserving pressKey Enter submit' , ( ) => {
@@ -659,10 +658,10 @@ test('parseMaestroReplayFlow parses the test-app Maestro suite fixture', () => {
659658 '__maestroAssertVisible' ,
660659 '__maestroTapOn' ,
661660 '__maestroAssertVisible' ,
662- 'wait ' ,
663- 'fill ' ,
664- 'wait ' ,
665- 'fill ' ,
661+ '__maestroTapOn ' ,
662+ 'type ' ,
663+ '__maestroTapOn ' ,
664+ 'type ' ,
666665 '__maestroTapOn' ,
667666 '__maestroAssertVisible' ,
668667 '__maestroAssertVisible' ,
0 commit comments