@@ -195,6 +195,16 @@ async function main() {
195195 await expectFixtureText ( "URL Opened" ) ;
196196 } ) ;
197197 await measuredStep ( "JS focus URL and type" , async ( ) => {
198+ await session . tapElement (
199+ simulatorUDID ,
200+ { id : "fixture.message" } ,
201+ {
202+ source : "native-ax" ,
203+ maxDepth : 3 ,
204+ waitTimeoutMs : 15_000 ,
205+ durationMs : 30 ,
206+ } ,
207+ ) ;
198208 await retryAsync (
199209 async ( ) => {
200210 await session . openUrl ( simulatorUDID , fixtureFocusUrl ) ;
@@ -204,6 +214,7 @@ async function main() {
204214 3 ,
205215 2_000 ,
206216 ) ;
217+ await sleep ( 1_000 ) ;
207218 await session . batch ( simulatorUDID , [
208219 { action : "type" , text : "agent-ready" , delayMs : 12 } ,
209220 ] ) ;
@@ -292,12 +303,12 @@ async function main() {
292303 console . log ( "SimDeck JS API integration suite passed" ) ;
293304}
294305
295- async function expectFixtureText ( text ) {
296- return expectElementContains ( { id : "fixture.status" } , text ) ;
306+ async function expectFixtureText ( text , options = { } ) {
307+ return expectElementContains ( { id : "fixture.status" } , text , options ) ;
297308}
298309
299- async function expectElementContains ( selector , text ) {
300- const deadline = Date . now ( ) + 5_000 ;
310+ async function expectElementContains ( selector , text , options = { } ) {
311+ const deadline = Date . now ( ) + ( options . timeoutMs ?? 15_000 ) ;
301312 let last = "" ;
302313 while ( Date . now ( ) < deadline ) {
303314 const matches = await session . query ( simulatorUDID , selector , {
0 commit comments