You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 80aa8df
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ios): the snapshot node carries the field's placeholder
Android nodes carry the field's hint as placeholder since #2927; iOS nodes carried
nothing, so a consumer could neither query a field by its placeholder nor tell an
empty field (XCTest reports the placeholder as its value) from one holding that
text. XCTest exposes placeholderValue on every element and snapshot, and the AX
server exposes XC_kAXXCAttributePlaceholderValue.
Every iOS producer now publishes placeholder on RawAXNode and PresentedNode: the
XCTest tree and query sweeps read placeholderValue off the snapshot or element,
the runner's private-AX reader asks for the keypath beside value, and the
Simulator AX bridge requests the attribute (source v1.8.0, one recompile per
host). An empty placeholder reads as none. The docs name the fact for both
platforms.
Copy file name to clipboardExpand all lines: apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+PrivateAXPresentationTests.swift
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,29 @@ extension RunnerTests {
117
117
)
118
118
}
119
119
120
+
/// The private-AX reader hands over `placeholderValue` beside `value`; the acquisition publishes
121
+
/// it on the node and reads an empty one as no placeholder, the way every other producer does.
Copy file name to clipboardExpand all lines: apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+SnapshotPresentationTests.swift
0 commit comments