test: add E2E tests for dashboard and collection views

Covers dashboard card rendering (item count, nav links, active thread/setup counts)
and collection page (gear display, search, category filter, tab switching).
Updates playwright config to serve production build with pre-seeded test DB.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 16:14:07 +02:00
parent ecbfbc00e9
commit 60db8bd9de
4 changed files with 151 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ export default defineConfig({
retries: 0,
workers: 1,
reporter: "list",
globalSetup: "./e2e/global-setup.ts",
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
@@ -18,9 +17,9 @@ export default defineConfig({
},
],
webServer: {
command: "DATABASE_PATH=./e2e/test.db bun run dev:server",
command: "sh e2e/start-test-server.sh",
port: 3000,
reuseExistingServer: !process.env.CI,
timeout: 10000,
timeout: 30000,
},
});