Run Playwright end-to-end tests against the running application. Optionally filter by test name or file.
Run Playwright end-to-end tests. Accepts $ARGUMENTS for filtering.
/e2e — run all E2E tests/e2e login — run tests matching "login"/e2e e2e/dashboard.spec.ts — run a specific test file/e2e --headed — run with visible browserVerify all three services are running before executing tests:
# Check frontend (port 3000)
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 || echo "Frontend not running on :3000"
# Check backend API (port 8080)
curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/api/health || echo "API not running on :8080"
# Check WebSocket (port 8765)
echo '{}' | timeout 2 wscat -c ws://localhost:8765 2>/dev/null || echo "WebSocket not running on :8765"
If any service is not running, report which ones are down and provide the start commands.
Verify all three services are running (see prerequisites above)
Run Playwright tests:
cd frontend && npx playwright test $ARGUMENTS
If tests pass, report the summary (tests passed, duration)
If tests fail:
frontend/test-results/npx playwright show-report for the full HTML reportThe Playwright MCP server is available for interactive browser testing during development. Use it to navigate pages, fill forms, and verify UI state via accessibility tree.