Skip to content

Commit 142bb84

Browse files
committed
docs(snapshot): name every iOS native-state producer
1 parent f2e96e2 commit 142bb84

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

‎website/docs/docs/snapshots.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ Android snapshot nodes and `get attrs` (including the digest response) carry the
289289
them. Explicit `false` and `0` are kept; an absent field means the fact was unavailable, not false.
290290
`hintShowing` and `placeholder` need Android API 26 or later, `heading` API 28 or later.
291291

292+
On iOS, the Apple runner, Simulator accessibility bridge, Appium, and Limrun publish native
293+
`checked`, `password`, and `editable` facts when available. macOS runner snapshots publish the
294+
same native facts.
295+
292296
- `selected` is the accessibility selected state an app sets on a control — the active bottom-tab or
293297
segmented-control item, or the chosen row of a list. Android reports it explicitly as `true` or
294298
`false`; an older helper APK omits the field, which means the answer is unavailable rather than
@@ -298,14 +302,16 @@ them. Explicit `false` and `0` are kept; an absent field means the fact was unav
298302
view an app marked checkable. Android reports it as `true` or `false` on those nodes only; a node
299303
that cannot be checked, or an older helper APK, omits the field. Snapshot text marks the node
300304
`[checked]` or `[unchecked]`, so a toggle that reads as plain text is one Android did not report as
301-
checkable. iOS and macOS runner native switches, checkboxes, radio buttons, and toggles carry `checked` when their
302-
native value reports a boolean state; an unavailable or unrecognized state stays absent.
305+
checkable. On iOS and the macOS runner, native switches, checkboxes, radio buttons, and toggles
306+
carry `checked` when their native value reports a boolean state; an unavailable or unrecognized
307+
state stays absent.
303308
- `editable` is the native text-entry capability when available. `is editable` returns false for a
304309
disabled node, even when `editable` is true. Otherwise it uses the published fact, including
305310
explicit false, and falls back to the platform type only when the fact is absent. Android
306311
Appium leaves `editable` absent when the source does not report it.
307-
- `password` identifies secure text entry. iOS and macOS runner native secure fields report true and ordinary native
308-
text-entry fields report false. Android carries the reported native password flag.
312+
- `password` identifies secure text entry. On iOS and the macOS runner, native secure fields report
313+
true and ordinary native text-entry fields report false. Android carries the reported native
314+
password flag.
309315
- `heading` is the accessibility heading flag an app sets on a node, the way React Native's
310316
`accessibilityRole="header"` does on a plain `View`. The Android helper publishes true for a
311317
heading; Appium preserves an explicit true or false when reported. Limrun reports true when

0 commit comments

Comments
 (0)