From afa552e18b7c0f23f2bbc5a48d72864521b960dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20M=C3=B6rling?= Date: Wed, 27 May 2026 13:24:26 +0200 Subject: [PATCH] Run Mailpit E2E specs serially to stop flakes. account-settings and password-reset called clearMailpit in parallel with other tests, wiping emails before waitForEmailChangeToken could read them. Co-authored-by: Cursor --- AGENTS.md | 2 +- frontend/playwright.config.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 4071863..634d7f2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -272,7 +272,7 @@ docker compose -f docker-compose.e2e.yml down - Config: `frontend/playwright.config.ts` - Tests: `frontend/e2e/*.spec.ts` -- Serial specs (`deferred-payment-admin`, `admin-fulfillment`): Playwright project `chromium-serial`, `workers: 1` +- Serial specs (shared Mailpit / DB state): `deferred-payment-admin`, `admin-fulfillment`, `account-settings`, `password-reset` — Playwright project `chromium-serial`, `workers: 1` ### CI (future) - `./gradlew check` and `npm run test && npm run lint` must pass before merge. diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 3226301..d3062f0 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -26,6 +26,8 @@ export default defineConfig({ testIgnore: [ '**/deferred-payment-admin.spec.ts', '**/admin-fulfillment.spec.ts', + '**/account-settings.spec.ts', + '**/password-reset.spec.ts', ], use: { browserName: 'chromium' }, }, @@ -34,6 +36,8 @@ export default defineConfig({ testMatch: [ '**/deferred-payment-admin.spec.ts', '**/admin-fulfillment.spec.ts', + '**/account-settings.spec.ts', + '**/password-reset.spec.ts', ], fullyParallel: false, workers: 1,