Stabilize e2e suite: rate-limit, spec drift, a11y, visual baselines #1
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ export default defineEventHandler(async (event) => {
|
|||
const path = getRequestURL(event).pathname
|
||||
if (!path.startsWith('/api/')) return
|
||||
|
||||
// Bypass rate limiting in test/dev opt-in mode so parallel E2E runs from a
|
||||
// single IP (127.0.0.1) do not exhaust the per-IP budget. Mirrors the gate
|
||||
// used by /api/dev/* endpoints — only set in development and by Playwright.
|
||||
if (process.env.ALLOW_DEV_TEST_ENDPOINTS === 'true') return
|
||||
|
||||
const ip = getClientIp(event)
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue