@@ -342,7 +342,9 @@ extension RunnerTests {
342342 let response = try execute ( command : command )
343343
344344 XCTAssertTrue ( response . ok , String ( describing : response . error ) )
345- XCTAssertEqual ( app . staticTexts [ " agent-device-keyboard-busy-answer " ] . label , " Done while busy " )
345+ let answer = app . staticTexts [ " agent-device-keyboard-busy-answer " ] . label
346+ XCTAssertEqual ( answer , " Done while busy " )
347+ NSLog ( " AGENT_DEVICE_KEYBOARD_BUSY command=dismiss response.ok=%@ answer=%@ " , response . ok ? " true " : " false " , answer )
346348 }
347349 }
348350
@@ -353,7 +355,11 @@ extension RunnerTests {
353355 let response = try execute ( command : command )
354356
355357 XCTAssertTrue ( response . ok , String ( describing : response . error ) )
356- XCTAssertEqual ( app . staticTexts [ " agent-device-keyboard-busy-answer " ] . label , " Return while busy " )
358+ XCTAssertEqual ( response . data ? . wasVisible , true )
359+ XCTAssertEqual ( response . data ? . visible , false )
360+ let answer = app . staticTexts [ " agent-device-keyboard-busy-answer " ] . label
361+ XCTAssertEqual ( answer , " Return while busy " )
362+ NSLog ( " AGENT_DEVICE_KEYBOARD_BUSY command=enter response.ok=%@ visible=%@ answer=%@ " , response . ok ? " true " : " false " , String ( describing : response . data ? . visible ) , answer )
357363 }
358364 }
359365
@@ -376,9 +382,9 @@ extension RunnerTests {
376382 while ! isKeyboardVisible ( app : app ) && Date ( ) < keyboardDeadline {
377383 sleepFor ( 0.2 )
378384 }
379- try XCTSkipUnless (
385+ XCTAssertTrue (
380386 isKeyboardVisible ( app : app ) ,
381- " software keyboard is down: this simulator cannot exercise a keyboard control "
387+ " Enable the simulator software keyboard before running the busy keyboard tests; see apple/runner/README.md "
382388 )
383389 XCTAssertEqual ( app . staticTexts [ " agent-device-keyboard-busy-answer " ] . label , " Unanswered " )
384390 try body ( )
0 commit comments