Repository navigation
Playwright browser tests for the v2 pages, offline (#186) - #188
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 andnode --testare unchanged.BOARDSTAT_RECORD_VENDOR=1. Any other request fails the test.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, withLICENSE.txtbeside it. Noel approved committing it.serve.py --data DIR, so the tests can serve the fixture.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
uv run pytestinv2/pipelineandnode --test v2/tests-js/.Stacked
#187's PR is built on this branch. Merge this one first.
🤖 Generated with Claude Code