mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
fix(companion): prune the keyboard subtree from snapshots
This commit is contained in:
1 parent
8645431221
commit
89e78871f2
1 file changed
+6
@@ -38,6 +38,12 @@ enum Snapshot {
|
||||
}
|
||||
|
||||
private static func walk(_ node: XCUIElementSnapshot, into result: inout [[String: Any]]) {
|
||||
// The keyboard subtree is pruned: the legacy accessibility bridge
|
||||
// never exposed it, its key frames are unreliable as tap targets, and
|
||||
// its shift-state churn destabilizes settle hashing.
|
||||
if node.elementType == .keyboard {
|
||||
return
|
||||
}
|
||||
result.append(serialize(node))
|
||||
for child in node.children {
|
||||
walk(child, into: &result)
|
||||
|
||||
Reference in new issue
Block a user