flowrs-engine/crates/flowrs-openui/tests/fixtures/1.0/state
Repository files (latest commit first)
Filename Latest commit message Latest commit date
flowRS fd958c0547 flowRS engine, cut from flowRS 3451b065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:04:39 -05:00
..
README.md flowRS engine, cut from flowRS 3451b065 2026-11-02 19:04:39 -05:00

state

These cases protect a client from losing or misplacing state: undeclared $names, two-way bindings, which form a field writes to, and which values pass validation. They cover language.md section 5. The binding and form cases use interactions.json, and the validation case uses validation.json instead of a program.

Case What it checks Spec
001-store-auto-declare An undeclared $name is declared with null, so the Text shows "anon", and the store holds $v and $name. 5.1
002-binding-two-way (+ interactions) $query passed to the bindable Input.value is a binding, and typing "late" writes it to the store. 5.2
003-form-scope (+ interactions) An Input inside Form("contact", ...): the @ToAssistant event carries formName: "contact" and the field under that form. 5.3, 6.3
004-form-page-level (+ interactions) An Input outside any form writes page-level state: the event has no formName and the field at the top level of formState. 5.3, 6.3
005-validation-rules Pass or fail for each rule (required, email, url, numeric, minLength, maxLength, min, max, pattern), including that every rule but required skips empty values and that "12abc" is numeric. 5.4