Skip to content

Commit 8467af8

Browse files
authored
fix: avoid iOS fill runner tree scan (#321)
1 parent ce37859 commit 8467af8

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/platforms/ios/interactions.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ export function iosRunnerOverrides(
170170
device,
171171
{
172172
command: 'type',
173-
x,
174-
y,
175173
text,
176174
clearFirst: true,
177175
delayMs,

src/utils/__tests__/interactors.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test('ios scroll reports planned pixels without recomputing from runner coordina
110110
assert.equal(pixels, 120);
111111
});
112112

113-
test('ios fill preserves target coordinates for the follow-up type command', async () => {
113+
test('ios fill clears the focused field after tapping the target coordinates', async () => {
114114
const commands: RunnerCommand[] = [];
115115
mockRunIosRunnerCommand.mockImplementation(async (_device, command) => {
116116
commands.push(command);
@@ -124,8 +124,6 @@ test('ios fill preserves target coordinates for the follow-up type command', asy
124124
{ command: 'tap', x: 120, y: 240, appBundleId: 'com.example.app' },
125125
{
126126
command: 'type',
127-
x: 120,
128-
y: 240,
129127
text: 'hunter2',
130128
clearFirst: true,
131129
delayMs: undefined,

0 commit comments

Comments
 (0)