Skip to content

Playwright browser tests for the v2 pages, offline (#186) - #188

Merged
noneck merged 1 commit into
masterfrom
feature/browser-tests-186
Nov 23, 2026
Merged

noneck merged 1 commit into
masterfrom
feature/browser-tests-186

Conversation

@noneck

@noneck noneck commented Nov 23, 2026

Copy link
Copy Markdown
Member

Closes #186.

What changed

  • v2/tests-browser/: Playwright browser tests for the v2 pages, as their own uv project (pytest and Playwright for Python). The pipeline tests and node --test are unchanged.
  • Offline: Chromium resolves only localhost. The pinned CDN files and DuckDB's Parquet extension come from a git-ignored cache, recorded once with BOARDSTAT_RECORD_VENDOR=1. Any other request fails the test.
  • Fixture: Queens Joint Interest Area 480, taken from the published build by make_fixture.py (never the pipeline, never NYC Open Data). It is about 590 KB of published 311 rows under BoardStat's ODbL data license, with LICENSE.txt beside it. Noel approved committing it.
  • serve.py --data DIR, so the tests can serve the fixture.
  • Tests: the page loads, Apply changes the counts and the link, and every filter control has a unique accessible name.
  • To run them: see v2/README.md, "Browser tests (Add Playwright browser tests for the v2 pages #186)".

Why

Nothing tested the pages the way a person or an AI agent uses them. #187 (the agent-ready filters pilot) needs this, and #115 can build on it.

Test plan, as run

  • At this commit, the builder ran the browser tests offline (pass), plus uv run pytest in v2/pipeline and node --test v2/tests-js/.
  • The stacked PR on top was checked by two reviewers and by Marvin: 21 browser, 264 Python and 105 Node tests pass.

Stacked

#187's PR is built on this branch. Merge this one first.

🤖 Generated with Claude Code

- v2/tests-browser: its own uv project (pytest + Playwright for Python), so the
  pipeline tests and node --test are unchanged.
- Offline: Chromium resolves only localhost; pinned CDN libraries and DuckDB's
  Parquet extension come from a git-ignored cache filled once with
  BOARDSTAT_RECORD_VENDOR=1. A test fails on any other request.
- Fixture: Queens Joint Interest Area 480 from the published build
  (make_fixture.py; never the pipeline, never NYC Open Data).
- serve.py --data DIR serves a folder at /data/.
- Tests: page loads, Apply changes counts and link, every form control has a
  unique accessible name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noneck
noneck merged commit 3f56a70 into master Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Playwright browser tests for the v2 pages

1 participant