test(e2e): register+verify smoke and admin invite flow via Mailpit

This commit is contained in:
2026-05-20 23:19:56 +02:00
parent 28bb903b93
commit 5739b6d941
3 changed files with 95 additions and 4 deletions

View File

@@ -2,10 +2,11 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: '../../e2e',
workers: 1,
webServer: [
{
command:
'rm -f packages/backend/data/e2e.db data/e2e.db && DB_PATH=./data/e2e.db npm -w @flashcard/backend run db:migrate && DB_PATH=./data/e2e.db npm -w @flashcard/backend run dev',
'rm -f packages/backend/data/e2e.db data/e2e.db && DB_PATH=./data/e2e.db SMTP_HOST=localhost SMTP_PORT=1025 APP_URL=http://localhost:5173 npm -w @flashcard/backend run db:migrate && DB_PATH=./data/e2e.db SMTP_HOST=localhost SMTP_PORT=1025 APP_URL=http://localhost:5173 npm -w @flashcard/backend run dev',
cwd: '../..',
port: 3000,
reuseExistingServer: false,