Skip to content

Commit 4aed3fb

Browse files
authored
fix: support TouchableOpacity as [other] on iOS when has content (#31)
* fix: support TouchableOpacity as [other] on iOS when has content * update snapshot ios
1 parent c470137 commit 4aed3fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ios-runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ final class RunnerTests: XCTestCase {
704704
if options.interactiveOnly {
705705
if interactiveTypes.contains(type) { return true }
706706
if element.isHittable && type != .other { return true }
707-
if hasContent && type != .other { return true }
707+
if hasContent { return true }
708708
return false
709709
}
710710
if options.compact {
@@ -728,7 +728,7 @@ final class RunnerTests: XCTestCase {
728728
if options.interactiveOnly {
729729
if interactiveTypes.contains(type) { return true }
730730
if snapshotHittable(snapshot) && type != .other { return true }
731-
if hasContent && type != .other { return true }
731+
if hasContent { return true }
732732
return false
733733
}
734734
if options.compact {

test/integration/ios.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test('ios settings commands', { skip: shouldSkipIos() }, async () => {
2929
formatResultDebug('snapshot nodes', snapshotArgs, snapshot),
3030
);
3131

32-
const clickArgs = ['click', '@e13', '--json', ...session];
32+
const clickArgs = ['click', '@e15', '--json', ...session];
3333
const click = runCliJson(clickArgs);
3434
assert.equal(click.status, 0, formatResultDebug('click @e13', clickArgs, click));
3535

0 commit comments

Comments
 (0)