test(e2e): disable rate limiting in the Playwright backend webserver
Some checks failed
Mirror to GitHub / mirror (push) Successful in 4s
CI / frontend (pull_request) Successful in 6m47s
CI / backend (pull_request) Failing after 9m24s
CI / e2e (pull_request) Successful in 10m26s

RATE_LIMIT_ENABLED now defaults on regardless of DEBUG; the e2e suite
logs in dozens of times per run from one IP and trips the per-minute
auth limits (429 at helpers/api.ts login).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 20:14:05 -04:00
parent c4947218a4
commit 63e5881972

View File

@@ -31,6 +31,9 @@ export default defineConfig({
env: { env: {
...process.env, ...process.env,
DEBUG: process.env.PLAYWRIGHT_DEBUG || 'true', DEBUG: process.env.PLAYWRIGHT_DEBUG || 'true',
// e2e logs in dozens of times per run from one IP — the per-minute
// auth limits would 429 every spec after the first few.
RATE_LIMIT_ENABLED: 'false',
SECRET_KEY: process.env.PLAYWRIGHT_SECRET_KEY || 'playwright-test-secret-key', SECRET_KEY: process.env.PLAYWRIGHT_SECRET_KEY || 'playwright-test-secret-key',
DATABASE_URL: backendDatabaseUrl, DATABASE_URL: backendDatabaseUrl,
DATABASE_URL_SYNC: backendDatabaseUrlSync, DATABASE_URL_SYNC: backendDatabaseUrlSync,