From 4aed3fba72a0f9bce03bb8fc4bfc18f9d0397871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 9 Feb 2026 19:07:04 +0100 Subject: [PATCH] fix: support TouchableOpacity as [other] on iOS when has content (#31) * fix: support TouchableOpacity as [other] on iOS when has content * update snapshot ios --- .../AgentDeviceRunnerUITests/RunnerTests.swift | 4 ++-- test/integration/ios.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift b/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift index 8a35e865c..ca109baf8 100644 --- a/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift +++ b/ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift @@ -704,7 +704,7 @@ final class RunnerTests: XCTestCase { if options.interactiveOnly { if interactiveTypes.contains(type) { return true } if element.isHittable && type != .other { return true } - if hasContent && type != .other { return true } + if hasContent { return true } return false } if options.compact { @@ -728,7 +728,7 @@ final class RunnerTests: XCTestCase { if options.interactiveOnly { if interactiveTypes.contains(type) { return true } if snapshotHittable(snapshot) && type != .other { return true } - if hasContent && type != .other { return true } + if hasContent { return true } return false } if options.compact { diff --git a/test/integration/ios.test.ts b/test/integration/ios.test.ts index cf6446702..801bfdcaa 100644 --- a/test/integration/ios.test.ts +++ b/test/integration/ios.test.ts @@ -29,7 +29,7 @@ test('ios settings commands', { skip: shouldSkipIos() }, async () => { formatResultDebug('snapshot nodes', snapshotArgs, snapshot), ); - const clickArgs = ['click', '@e13', '--json', ...session]; + const clickArgs = ['click', '@e15', '--json', ...session]; const click = runCliJson(clickArgs); assert.equal(click.status, 0, formatResultDebug('click @e13', clickArgs, click));