gstack/browse/test
Garry Tan 318ffdbdf0
fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117)
* fix: js statement wrapping + click auto-routes option to selectOption

Bug 1: js command wrapped all code as expressions — const, semicolons,
and multi-line code broke with SyntaxError. Added needsBlockWrapper()
and wrapForEvaluate() helpers (shared with eval) to detect statements
and use block wrapper {…} instead of expression wrapper (…).

Bug 2: clicking <option> refs hung forever because Playwright can't
.click() native select UI. Click handler now checks ARIA role + DOM
tagName and auto-routes to selectOption() via parent <select>.

Bug 3: click timeouts on <option> elements gave no guidance. Now
throws helpful error: "Use browse select instead of click."

* chore: bump version and changelog (v0.4.5)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 21:50:43 -05:00
..
fixtures
…
commands.test.ts fix: js statement wrapping + click auto-routes option to selectOption (v0.4.5) (#117) 2026-03-16 21:50:43 -05:00
config.test.ts
…
cookie-import-browser.test.ts
…
cookie-picker-routes.test.ts
…
find-browse.test.ts
…
gstack-config.test.ts
…
gstack-update-check.test.ts fix: update check cache — 60min UP_TO_DATE TTL + --force flag (v0.4.4) (#110) 2026-03-16 14:14:15 -05:00
snapshot.test.ts
…
test-server.ts
…