test: add E2E database seed and Playwright global setup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 16:10:12 +02:00
parent f7ce380104
commit ecbfbc00e9
2 changed files with 230 additions and 0 deletions

10
e2e/global-setup.ts Normal file
View File

@@ -0,0 +1,10 @@
import { seedTestDatabase } from "./seed";
export default async function globalSetup() {
await seedTestDatabase();
}
// Allow direct invocation: bun run e2e/global-setup.ts
if (import.meta.main) {
await globalSetup();
}