fix: support TouchableOpacity as [other] on iOS when has content (#31)

* fix: support TouchableOpacity as [other] on iOS when has content

* update snapshot ios
This commit is contained in:
Michał Pierzchała
2026-02-09 19:07:04 +01:00
committed by GitHub
parent c470137671
commit 4aed3fba72
2 changed files with 3 additions and 3 deletions
@@ -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 {
+1 -1
View File
@@ -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));