;; 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: relativePositionalExpression (4 tests — 0 runnable)"
    (p :style "color:#57534e;margin-bottom:1rem" "Live cards for the upstream relativePositionalExpression 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-language))"
        :style "color:#7c3aed" "language"))
    (div :style "display:flex;flex-direction:column"
      (~hyperscript/hs-test-card
  :name "can access property of next element with possessive"
  :html "<div id=\"d1\"></div><div id=\"d2\">hello</div>"
  :action ""
  :check "toBe('hello')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "can access property of previous element with possessive"
  :html "<div id=\"d1\">world</div><div id=\"d2\"></div>"
  :action ""
  :check "toBe('world')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "can access style of next element with possessive"
  :html "<div id=\"d1\"></div><div id=\"d2\" style=\"color: red\"></div>"
  :action ""
  :check "toBe('red')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))")
(~hyperscript/hs-test-card
  :name "can write to next element with put command"
  :html ""
  :action "find('#d1').dispatchEvent('click'); evaluate({...})"
  :check "toHaveText('updated')"
  :run-src "(fn (sandbox) (error \"not yet runnable in gallery — see test suite\"))"))))
