Skip to content

Commit 4db71da

Browse files
thymikeeclaude
andcommitted
test(ios): pin a tap request carrying text-input evidence
The macOS host lane requires every runner request field to have a production request in runner-requests.json; the new coordinateTapTextInputEvidence field had none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 309c058 commit 4db71da

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎contracts/fixtures/runner-requests.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
{"name": "ios-simulator.interactions-single-press-double-tap.single", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "sequence", "steps": [{"kind": "doubleTap", "x": 10, "y": 20}], "appBundleId": "com.example.app", "commandId": "<commandId>"}},
2929
{"name": "ios-simulator.interactions-single-press-long-press.hold", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "longPress", "x": 10, "y": 20, "durationMs": 600, "appBundleId": "com.example.app", "commandId": "<commandId>"}},
3030
{"name": "ios-simulator.interactions-single-press-tap.synthesized", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "tap", "x": 10, "y": 20, "synthesized": true, "appBundleId": "com.example.app", "commandId": "<commandId>"}},
31+
{"name": "ios-simulator.interactions-single-press-tap.text-input-evidence", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "tap", "x": 10, "y": 20, "coordinateTapTextInputEvidence": {"source": "selector-capture", "targetBundleId": "com.example.app", "point": {"x": 10, "y": 20}, "textInputRects": [{"x": 0, "y": 100, "width": 200, "height": 44}]}, "synthesized": true, "appBundleId": "com.example.app", "commandId": "<commandId>"}},
3132
{"name": "ios-simulator.interactions-tap-element-selector.expected-point", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "tap", "selectorKey": "label", "selectorValue": "Go", "allowNonHittableCoordinateFallback": true, "x": 10, "y": 20, "synthesized": true, "appBundleId": "com.example.app", "commandId": "<commandId>"}},
3233
{"name": "ios-simulator.interactions-tap.synthesized", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "tap", "x": 10, "y": 20, "synthesized": true, "appBundleId": "com.example.app", "commandId": "<commandId>"}},
3334
{"name": "ios-simulator.interactions-type.append", "producer": "packages/platform-apple/src/__tests__/index-runner-requests.test.ts", "request": {"command": "type", "text": "hello", "delayMs": 10, "textEntryMode": "append", "appBundleId": "com.example.app", "commandId": "<commandId>"}},

‎packages/platform-apple/src/__tests__/index-runner-requests.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ const INTERACTOR_SITES: Record<string, InteractorDrive> = {
5858
'ios-simulator.interactions-focus.synthesized': [IOS_SIMULATOR, (i) => i.focus(10, 20)],
5959
'macos.interactions-focus.coordinate': [MACOS_DEVICE, (i) => i.focus(10, 20)],
6060
'ios-simulator.interactions-single-press-tap.synthesized': [IOS_SIMULATOR, press()],
61+
'ios-simulator.interactions-single-press-tap.text-input-evidence': [
62+
IOS_SIMULATOR,
63+
press({
64+
coordinateTapTextInputEvidence: {
65+
source: 'selector-capture',
66+
targetBundleId: APP,
67+
point: { x: 10, y: 20 },
68+
textInputRects: [{ x: 0, y: 100, width: 200, height: 44 }],
69+
},
70+
}),
71+
],
6172
'macos.interactions-single-press-tap.coordinate': [MACOS_DEVICE, press()],
6273
'ios-simulator.interactions-tap-element-selector.expected-point': [
6374
IOS_SIMULATOR,

0 commit comments

Comments
 (0)