test/playwright/component/form/field/ holds arms for Text, TextArea, Number, ComboBox and Chip. It holds none for CheckBox or Radio. Across the whole suite, the only thing that touches either is unit/form/field/IdSync.spec.mjs, which asserts internal id syncing — Radio has no coverage at all.
That gap has already cost something. #18817 was filed (by me) claiming a landing render writes back over a user's click on a checkbox, on the strength of a unit fixture that held a flight open. It closed not_planned after a real-browser measurement showed no revert and zero engine checked writes. With an arm pinning the real contract, the claim would have been settled in a minute instead of a ticket.
Measured in a real browser (examples/form/field/checkbox, engine at aadafbad1b), by redefining checked on the live <input> so every write is recorded with its previous value:
Probe
Result
CheckBox, 1 / 2 / 3 / 5 / 8 rapid clicks
DOM always ends on the user's state; 0 engine checked writes
Radio, setConfigs({checked: true}) with no native click
engine writes {was: true, wrote: false} to the sibling's DOM
Radio, same probe with uncheckGroupItems()disabled
sibling DOM false, sibling config true — the divergence only the engine closes
The last row is the load-bearing one, and it corrects my first reading of the third: native grouping does reach the config path, so the DOM is not the discriminator. The config is. Nothing guards it.
Live latest-open sweep: latest 20 open issues read at 2026-09-17T11:05Z, plus a targeted search on radio / checkbox / component coverage — only #18817, closed. grep over resources/content/issues and resources/content/discussions for radiofield / field/Radio: no artifact. A2A: no claim on form-field coverage. Own-assignment sweep: no overlap.
The Problem
Three contracts are live, consumer-visible, and unguarded:
Radio exclusivity is enforced by the engine on the CONFIG surface; the browser owns the DOM.Radio#afterSetChecked calls uncheckGroupItems(), which resolves siblings via ComponentManager.find({ntype: 'radiofield', name}) and assigns item.checked = false. Native grouping covers same-name radios in one document on a click and on a checked property assignment, so the DOM half survives without the engine. What does not survive is the losing radio's config: measured with the method disabled, the sibling reads DOM false / config true. A regression here is invisible to any DOM-only test and leaves a form holding two selected values.
A checked delta is applied as a property, not an attribute.checked is in voidAttributes, so DeltaUpdates.mjs:886 runs node[key] = val === 'true'. That is what lets the engine override a user's interaction at all — the reason it is safe today is contract 3, not luck.
A user click emits no checked delta.CheckBox#onInputValueChange syncs the vnode and then sets me.checked, so the vdom already agrees with the DOM and the next render diffs a value against itself. Break the ordering and the property write from contract 2 lands on top of a real click. This is exactly the failure #18817 imagined; nothing currently stops it becoming true.
The Architectural Reality
src/form/field/Radio.mjs:41-45 — afterSetChecked → value && this.uncheckGroupItems().
src/form/field/Radio.mjs:68-84 — uncheckGroupItems() finds by ntype + name and writes item.checked = false, skipping itself and anything already false.
src/vdom/domConstants.mjs:28 — voidAttributes includes checked.
src/main/DeltaUpdates.mjs:886 — node[key] = val === 'true' for every void attribute.
test/playwright/component/form/field/Text.spec.mjs — the arm idiom: createNeoInstance into component-test-viewport, real Playwright clicks, DOM assertions.
The Fix
Two spec files under test/playwright/component/form/field/, following the sibling idiom exactly — real browser, real clicks, no vdom-internal fixtures:
Radio.spec.mjs — exclusivity by click and by config, the group scoped by name, and the DOM property as the assertion surface rather than the config.
CheckBox.spec.mjs — the click-to-DOM round trip, the programmatic round trip, and the no-redundant-delta property.
No source changes. If an arm reds, that is a defect report, not a fixture to adjust.
Acceptance Criteria
AC-1 — Radio: clicking one radio unchecks its same-name sibling, asserted on the DOM checkedproperty of both inputs.
AC-2 — Radio: setConfigs({checked: true}) on one radio, with no click anywhere, leaves the sibling's checked config false, not merely its DOM. Mutation-measured discriminator with uncheckGroupItems() disabled: sibling DOM false, sibling config true — a silent divergence nothing else repairs. (Corrected: I first wrote that native grouping cannot reach the config path. It can — the browser unsets same-name siblings on a checked property assignment too, so a DOM-only arm passes with the method deleted. The config is the half the engine owns.)
AC-3 — Radio: a radio carrying a differentname is untouched by both of the above, so the arm pins the group scope rather than "some radio somewhere changed".
AC-4 — CheckBox: a real click reaches the component config, and a setConfigs({checked}) change reaches the DOM property — both directions, in one arm each.
AC-5 — CheckBox: after a burst of rapid clicks, the DOM property matches the parity of the click count and the config agrees. (Scope correction: this does NOT pin the onInputValueChange vnode-sync ordering. Measured — deleting that line leaves both CheckBox arms green, because the me.checked assignment on the next line is what suppresses the delta. The arms guard the round trip, which had no coverage; they do not guard the sync, and the spec says so.)
AC-6 — both files run in the existing components CI job with no config change, and the full component suite stays green.
Out of Scope
Re-parenting, within one window or across two. @tobiu's call: that belongs in e2e, not here, and it is the one scenario the #18817 measurement did not rule out. It rides #18802's premise question rather than this ticket.
Any src/ change. If an arm goes red, it gets its own ticket.
labelPosition / hideLabel / valueLabel styling arms — Text already establishes that idiom and copying it here adds rows without adding evidence.
form.field.Radio's getGroupValue() submit-shape and form integration.
Avoided Traps
⛔ Do not assert on the component config.checked reaching me.checked proves nothing about the DOM — the whole #18817 confusion lived in that gap. Assert the DOM property, which is what DeltaUpdates writes and what a user sees.
⛔ Do not let native browser grouping stand in for the engine's. A click-only radio arm passes with uncheckGroupItems() deleted. AC-2 exists precisely because it is the arm that cannot.
⛔ Do not hold a vdom flight open to manufacture a race. That is the fixture shape that produced a ticket for a defect that does not exist. If a race needs proving, prove it on a real surface.
Related
#18817 — closed not_planned; the falsification that motivated this
#18792 / PR #18798 — the form.field.Text sibling, which had a real e2e receipt
#18802 — the re-parenting scenario is parked behind its premise question
Retrieval Hint: "checkbox radio component test coverage, engine-enforced radio exclusivity uncheckGroupItems, checked voidAttribute property write"
tobiu referenced in commit 2a66a35 - "test(form): checkbox and radio get component coverage, and the radio group's config half gets a guard (#18818) (#18819) on Sep 17, 2026, 1:47 PM
Context
test/playwright/component/form/field/holds arms for Text, TextArea, Number, ComboBox and Chip. It holds none for CheckBox or Radio. Across the whole suite, the only thing that touches either isunit/form/field/IdSync.spec.mjs, which asserts internal id syncing — Radio has no coverage at all.That gap has already cost something. #18817 was filed (by me) claiming a landing render writes back over a user's click on a checkbox, on the strength of a unit fixture that held a flight open. It closed
not_plannedafter a real-browser measurement showed no revert and zero enginecheckedwrites. With an arm pinning the real contract, the claim would have been settled in a minute instead of a ticket.Measured in a real browser (
examples/form/field/checkbox, engine ataadafbad1b), by redefiningcheckedon the live<input>so every write is recorded with its previous value:checkedwrites{was: false, wrote: false}— redundant, the browser already groupedsetConfigs({checked: true})with no native click{was: true, wrote: false}to the sibling's DOMuncheckGroupItems()disabledfalse, sibling configtrue— the divergence only the engine closesThe last row is the load-bearing one, and it corrects my first reading of the third: native grouping does reach the config path, so the DOM is not the discriminator. The config is. Nothing guards it.
Live latest-open sweep: latest 20 open issues read at 2026-09-17T11:05Z, plus a targeted search on radio / checkbox / component coverage — only #18817, closed.
grepoverresources/content/issuesandresources/content/discussionsforradiofield/field/Radio: no artifact. A2A: no claim on form-field coverage. Own-assignment sweep: no overlap.The Problem
Three contracts are live, consumer-visible, and unguarded:
Radio#afterSetCheckedcallsuncheckGroupItems(), which resolves siblings viaComponentManager.find({ntype: 'radiofield', name})and assignsitem.checked = false. Native grouping covers same-name radios in one document on a click and on acheckedproperty assignment, so the DOM half survives without the engine. What does not survive is the losing radio's config: measured with the method disabled, the sibling reads DOMfalse/ configtrue. A regression here is invisible to any DOM-only test and leaves a form holding two selected values.checkeddelta is applied as a property, not an attribute.checkedis invoidAttributes, soDeltaUpdates.mjs:886runsnode[key] = val === 'true'. That is what lets the engine override a user's interaction at all — the reason it is safe today is contract 3, not luck.checkeddelta.CheckBox#onInputValueChangesyncs the vnode and then setsme.checked, so the vdom already agrees with the DOM and the next render diffs a value against itself. Break the ordering and the property write from contract 2 lands on top of a real click. This is exactly the failure #18817 imagined; nothing currently stops it becoming true.The Architectural Reality
src/form/field/Radio.mjs:41-45—afterSetChecked→value && this.uncheckGroupItems().src/form/field/Radio.mjs:68-84—uncheckGroupItems()finds byntype+nameand writesitem.checked = false, skipping itself and anything already false.src/form/field/CheckBox.mjs:610-620—onInputValueChange()writesme.vnode.childNodes[0].childNodes[me.hideLabel ? 0 : 1].attributes.checked, then assignsme.checked.src/vdom/domConstants.mjs:28—voidAttributesincludeschecked.src/main/DeltaUpdates.mjs:886—node[key] = val === 'true'for every void attribute.test/playwright/component/form/field/Text.spec.mjs— the arm idiom:createNeoInstanceintocomponent-test-viewport, real Playwright clicks, DOM assertions.The Fix
Two spec files under
test/playwright/component/form/field/, following the sibling idiom exactly — real browser, real clicks, no vdom-internal fixtures:Radio.spec.mjs— exclusivity by click and by config, the group scoped byname, and the DOM property as the assertion surface rather than the config.CheckBox.spec.mjs— the click-to-DOM round trip, the programmatic round trip, and the no-redundant-delta property.No source changes. If an arm reds, that is a defect report, not a fixture to adjust.
Acceptance Criteria
checkedproperty of both inputs.setConfigs({checked: true})on one radio, with no click anywhere, leaves the sibling'scheckedconfig false, not merely its DOM. Mutation-measured discriminator withuncheckGroupItems()disabled: sibling DOMfalse, sibling configtrue— a silent divergence nothing else repairs. (Corrected: I first wrote that native grouping cannot reach the config path. It can — the browser unsets same-name siblings on acheckedproperty assignment too, so a DOM-only arm passes with the method deleted. The config is the half the engine owns.)nameis untouched by both of the above, so the arm pins the group scope rather than "some radio somewhere changed".setConfigs({checked})change reaches the DOM property — both directions, in one arm each.onInputValueChangevnode-sync ordering. Measured — deleting that line leaves both CheckBox arms green, because theme.checkedassignment on the next line is what suppresses the delta. The arms guard the round trip, which had no coverage; they do not guard the sync, and the spec says so.)componentsCI job with no config change, and the fullcomponentsuite stays green.Out of Scope
src/change. If an arm goes red, it gets its own ticket.labelPosition/hideLabel/valueLabelstyling arms — Text already establishes that idiom and copying it here adds rows without adding evidence.form.field.Radio'sgetGroupValue()submit-shape and form integration.Avoided Traps
checkedreachingme.checkedproves nothing about the DOM — the whole #18817 confusion lived in that gap. Assert the DOM property, which is whatDeltaUpdateswrites and what a user sees.uncheckGroupItems()deleted. AC-2 exists precisely because it is the arm that cannot.Related
not_planned; the falsification that motivated thisform.field.Textsibling, which had a real e2e receiptOrigin Session ID: 2b78af80-54a8-4e14-afd8-85c6dfe41004
Retrieval Hint: "checkbox radio component test coverage, engine-enforced radio exclusivity uncheckGroupItems, checked voidAttribute property write"