;; 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: focus (3 tests — 0 runnable)"
    (p :style "color:#57534e;margin-bottom:1rem" "Live cards for the upstream focus tests. 0 of 3 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-dom))"
        :style "color:#7c3aed" "dom"))
    (div :style "display:flex;flex-direction:column"
      (~hyperscript/hs-test-card
  :name "can focus an element"
  :html "<input id='i1' /><button _='on click focus #i1'></button>"
  :action "find('button').dispatchEvent('click')"
  :check "toBe(\"i1\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "focus with no target focuses me"
  :html "<input id='i1' _='on click focus' />"
  :action "find('#i1').dispatchEvent('click')"
  :check "toBe(\"i1\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "can blur an element"
  :html "<input id='i1' _='on focus wait 10ms then blur me' />"
  :action "find('#i1').focus()"
  :check "toBe(\"BODY\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))"))))
