mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
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:
committed by
GitHub
parent
c470137671
commit
4aed3fba72
@@ -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 {
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user