Skip to content

Add Playwright browser tests for the v2 pages #186

Closed

Description

@noneck

BoardStat v2 has no browser tests. The JavaScript tests in v2/tests-js/ test pure functions under Node, with no DOM. Nothing checks the pages as a person (or an AI agent) uses them.

What to build

A small Playwright setup that tests the v2 pages as served by v2/serve.py:

  • Starts the local server, opens a district page, and waits for the data to load.
  • Runs offline against a fixture slice of the real build, never NYC Open Data.
  • One first test: the filter form opens, a filter can be set, and Apply changes the page and the link.
  • An accessibility-tree check: every control on the filter form has a name, and no two share one.

Why now

Decided

Playwright against the served page, not jsdom. It tests the real page with real DuckDB lists, and it needs no new package.json in v2/.

Acceptance

  • One command runs the browser tests locally, with the network blocked except for localhost.
  • The README says how to run them.
  • Python tests and the existing node --test suite are unchanged.

Activity

  1. noneck commented on Nov 23, 2026

    @noneck
    MemberAuthor

    Needed by #187 (agent-ready filters pilot).

  2. added a commit that references this issue on Nov 23, 2026
  3. noneck commented on Nov 23, 2026

    @noneck
    MemberAuthor

    Done 2026-11-22: merged in #188 (3f56a70). Browser tests live in v2/tests-browser/ and run offline; see v2/README.md, "Browser tests (#186)". At merge: 21 browser, 264 Python and 105 Node tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions