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

4
e2e/start-test-server.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
# Seed the test database, then start the production server
bun run e2e/global-setup.ts
NODE_ENV=production DATABASE_PATH=./e2e/test.db bun run src/server/index.ts