Skip to content

Commit 0a1d37c

Browse files
thymikeeclaude
andauthored
test(ios): give the post-probe type its own commandId (callstack#4261)
* test(ios): give the post-probe type its own commandId The runner command journal answers a repeated commandId from its recorded outcome (ADR 0005), so the second type in testFreshCoordinateTapContainsUnavailableTextInputProbe replayed the first send's TEXT_INPUT_NOT_FOCUSED. Fixes callstack#4212 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * test(ios): report the post-probe type error on failure Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
1 parent 7335965 commit 0a1d37c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+TextInputProbeTests.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ extension RunnerTests {
236236
)
237237
XCTAssertTrue(try execute(command: nextTap).ok)
238238
XCTAssertNotNil(textEntryTapWitness)
239-
XCTAssertTrue(try execute(command: type).ok)
239+
let retype = try runnerCommandFixture(#"{"appBundleId":"com.callstack.agentdevice.runner","command":"type","commandId":"type-after-probe-recovery","text":"must-not-type","textEntryMode":"append"}"#)
240+
let retyped = try execute(command: retype)
241+
XCTAssertTrue(retyped.ok, String(describing: retyped.error))
240242
XCTAssertEqual(field.value as? String, "must-not-type")
241243
}
242244
#endif

0 commit comments

Comments
 (0)