;; 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: select (4 tests — 0 runnable)"
    (p :style "color:#57534e;margin-bottom:1rem" "Live cards for the upstream select 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-expressions))"
        :style "color:#7c3aed" "expressions"))
    (div :style "display:flex;flex-direction:column"
      (~hyperscript/hs-test-card
  :name "selects text in an input"
  :html "<input id='inp' value='hello world' /><button _='on click select #inp'>Select</button>"
  :action "find('button').click()"
  :check "toBe(\"hello world\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "selects text in a textarea"
  :html "<textarea id='ta'>some text</textarea><button _='on click select #ta'>Select</button>"
  :action "find('button').click()"
  :check "toBe(\"some text\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "selects implicit me"
  :html "<input id='inp' value='test' _='on click select' />"
  :action "find('#inp').click()"
  :check "toBe(\"test\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "returns selected text"
  :html "<p id='text'>Hello World</p><button _='on click put the selection into #out'>Get</button><div id='out'></div>"
  :action "find('button').click()"
  :check "toHaveText(\"Hello\")"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))"))))
