test: add Playwright E2E infrastructure with smoke test

Set up Playwright with Chromium, dev server auto-start, test helpers
for seeding bots and programmatic auth. Added smoke spec that verifies
homepage and leaderboard load without crashes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-13 05:14:15 +00:00
co-authored by Claude Opus 4.6
parent 5e40221a2f
commit a7520be0e7
6 changed files with 174 additions and 1 deletions
+3 -1
View File
@@ -10,9 +10,11 @@
"lint": "eslint .",
"typecheck": "vue-tsc --noEmit -p frontend/tsconfig.json && tsc --noEmit -p server/tsconfig.json",
"clean": "rm -rf frontend/dist server/dist",
"seed": "pnpm --filter server seed"
"seed": "pnpm --filter server seed",
"test:e2e": "playwright test --config e2e/playwright.config.ts"
},
"devDependencies": {
"@playwright/test": "^1.58.2",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"concurrently": "^9.1.2",