feat(e2e): add Playwright E2E test harness with smoke test - #41
Merged
Conversation
Adds @playwright/test, a root playwright.config.ts, and an e2e/ smoke test asserting the app loads and the root placeholder is visible. The base URL is configurable via E2E_BASE_URL (defaults to the local HTTPS dev server); locally, tests reuse the dev server if it's already running and start it otherwise, while CI is expected to supply its own base URL and skips the webServer entirely. Bumps the playwright catalog pin to ~1.62.1 to match @playwright/test - a version mismatch between the two causes a dual test-runner- instance error.
This was referenced Aug 12, 2026
NoNamer777
commented
Aug 12, 2026
@playwright/test was left pinned at ~1.62.0 while playwright was bumped to ~1.62.1 to avoid the dual-test-runner-instance error. Both currently resolve to 1.62.1, but the looser ~1.62.0 range could re-resolve down to 1.62.0 on a future lockfile refresh and reintroduce that mismatch.
…orts/ Consolidates vitest's HTML test reporter and Playwright's HTML report and test artifacts under reports/test/ and reports/e2e/ respectively, alongside the existing reports/ convention. Coverage output is unaffected. Drops the now-redundant playwright-report/ and test-results/ .gitignore entries since both are nested under the already-ignored reports/.
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.
Summary
Adds the Playwright E2E test harness for this repo:
@playwright/testas a devDependency, a rootplaywright.config.ts, ane2e/directory with an initial smoke test (app loads, "Root works!" placeholder visible), ande2e(local UI/watch mode) /e2e-ci(headless) scripts.Locally, tests reuse the dev server at
https://localhost.www.dndmapp.dev:4000if it's already running, and start it otherwise (pnpm startvia Playwright'swebServer). The base URL is configurable viaE2E_BASE_URL, and thewebServeris skipped entirely whenCIis set, so a later ticket can wire in CI's own Caddy-fronted Docker Compose stack without reworking this harness. Reports go to Playwright's own defaultplaywright-report//test-results/folders, kept separate from the existing Vitestreports/output.Also bumps the
playwrightcatalog pin from~1.62.0to~1.62.1to match@playwright/test, since a version mismatch between the two throws a dual test-runner-instance error ("Playwright Test did not expect test() to be called here").Related issues
Resolves #39, part of #38
Checklist