;; AUTO-GENERATED from spec/tests/hyperscript-upstream-tests.json
;; DO NOT EDIT — regenerate with:
;;   python3 tests/playwright/generate-sx-tests.py --emit-pages

(defcomp ()
  (~docs/page :title "Hyperscript: reactive-properties (4 tests — 0 runnable)"
    (p :style "color:#57534e;margin-bottom:1rem" "Live cards for the upstream reactive-properties tests. 0 of 4 are reproducible in-browser; the remainder show their source for reference.")
    (p :style "color:#78716c;font-size:0.875rem;margin-bottom:1rem"
      "Theme: " (a :href "/sx/(applications.(hyperscript.gallery-reactivity))"
        :style "color:#7c3aed" "reactivity"))
    (div :style "display:flex;flex-direction:column"
      (~hyperscript/hs-test-card
  :name "setting a property on a plain object triggers reactivity"
  :html "<output _=\"when ($obj's x + $obj's y) changes put it into me\"></output>"
  :action "await run(\"set $obj to {x: 1, y: 2}\"; await run(\"set $obj'"
  :check "toHaveText('3')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "nested property chain triggers on intermediate reassignment"
  :html "<output _=\"when $data's inner's val changes put it into me\"></output>"
  :action "await run(\"set $data to {inner: {val: '; await run(\"set $data'"
  :check "toHaveText('hello')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "property change on DOM element triggers reactivity via setProperty"
  :html "<input type=\"text\" id=\"prop-input\" value=\"start\" /><output _=\"when #prop-input's value changes put it into me\"></output>"
  :action "await run(\"set #prop-input'"
  :check "toHaveText('start')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "live block tracks property reads on plain objects"
  :html "<output _=\"live put $config's label into me\"></output>"
  :action "await run(\"set $config to {label: '; await run(\"set $config'"
  :check ""
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))"))))
