mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
fix(ioscompanion): treat unresolved bridge values as transitional, never as content
This commit is contained in:
1 parent
a15e7a14f9
commit
8526c491e8
2 files changed
+11
No files matched your search
@@ -594,6 +594,12 @@ func (d *Driver) WaitForIdle(ctx context.Context, _ time.Duration) error {
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
// Unresolved bridge values mean the tree is mid-update; report the
|
||||
// snapshot transitional so the streak resets instead of declaring a
|
||||
// half-readable screen stable.
|
||||
if hasUnresolvedValues(dump) {
|
||||
return nil
|
||||
}
|
||||
mapped, err := MapHierarchy(dump, d.screenWidth, d.screenHeight)
|
||||
if err != nil {
|
||||
return nil
|
||||
|
||||
@@ -108,6 +108,11 @@ func mapElement(element *rawElement) (treeNode, bool) {
|
||||
}
|
||||
|
||||
value := stringValue(element.AXValue)
|
||||
if value == unresolvedValueSentinel {
|
||||
// Bridge state, not app content: surfacing it would show phantom
|
||||
// field values in snapshots taken while the bridge catches up.
|
||||
value = ""
|
||||
}
|
||||
label := stringValue(element.AXLabel)
|
||||
editable := isEditable(element.Type)
|
||||
|
||||
|
||||
Reference in new issue
Block a user