chore(e2e): add Playwright smoke test infrastructure#73
Open
pnewsam wants to merge 4 commits into
Open
Conversation
Add minimal e2e test suite using Playwright against the web SPA mode (dev:web). Three smoke tests verify server health, sidebar navigation rendering, and new-task button interactivity. Includes GitHub Actions workflow to run tests on every PR with failure artifact uploads. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
start-server.mjs looks for the Python interpreter at the uv tool install path (~/.local/share/uv/tools/anton/bin/python). Replace pip install with uv tool install so the server can find it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
start-server.mjs runs server/main.py using the uv tool venv Python. Ensure fastapi and other server deps are installed in that venv, not just anton's own dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
uv tool venvs don't include pip, so python -m pip fails. Use uv tool install --with to add fastapi, uvicorn, and python-multipart directly into the anton tool venv. Co-Authored-By: Claude Opus 4.6 <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.
Description
Adds a minimal Playwright e2e test suite that runs against the web SPA mode (
dev:web). This is the first automated test infrastructure for the project — the goal is to validate that e2e tests can work before expanding coverage.What's included:
e2e/playwright.config.ts— Playwright config withwebServerthat auto-startsnpm run dev:web(FastAPI + Vite), captures screenshots/video/traces on failuree2e/flows/app-loads.spec.ts— 3 smoke tests:/healthendpoint returns 200package.json— Added@playwright/testdevDependency +test:e2escript.gitignore— Addedtest-results/andplaywright-report/.github/workflows/e2e.yml— GitHub Actions workflow that runs on every PRType of change
Testing / Verification
Tests pass locally:
Steps to verify:
npm run test:e2e— runs all 3 smoke tests headlessnpm run test:e2e -- --headed— runs with visible browser to watch tests executepip install antonstep works (may need a PAT if theantonrepo is private)Checklist: