You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEV_AUTH_BYPASS (#555) opens the backend guest gates (human-verification + email) for headless testing, and backend Turnstile already self-disables in dev. But the frontend still renders the Turnstile / human-verification screen client-side, so browser-driven guest e2e (Playwright 02-guest-request, 04-search-pipeline) stalls — the guest page shows the Turnstile widget instead of the search form, and specs time out. This is the known gap called out when #555 merged.
What
Add a dev-only frontend escape so the client skips the Turnstile / human-verification UI when in dev:
A NEXT_PUBLIC_DEV_AUTH_BYPASS (or similar) build-time flag that, in development only, makes the guest pages skip the Turnstile widget + human-verification bootstrap and proceed straight to the search/submit UI.
Pair it with the backend DEV_AUTH_BYPASS so a single dev toggle enables full end-to-end headless guest testing (collect/join/kiosk).
Prod-safety, same bar as the backend flag: must be inert in any production build (NEXT_PUBLIC_* is baked at build time — ensure prod builds never ship it enabled; ideally also gate on a runtime dev check). Never weaken the real Turnstile/human gate in production.
Why
DEV_AUTH_BYPASS(#555) opens the backend guest gates (human-verification + email) for headless testing, and backend Turnstile already self-disables in dev. But the frontend still renders the Turnstile / human-verification screen client-side, so browser-driven guest e2e (Playwright02-guest-request,04-search-pipeline) stalls — the guest page shows the Turnstile widget instead of the search form, and specs time out. This is the known gap called out when #555 merged.What
Add a dev-only frontend escape so the client skips the Turnstile / human-verification UI when in dev:
NEXT_PUBLIC_DEV_AUTH_BYPASS(or similar) build-time flag that, in development only, makes the guest pages skip the Turnstile widget + human-verification bootstrap and proceed straight to the search/submit UI.DEV_AUTH_BYPASSso a single dev toggle enables full end-to-end headless guest testing (collect/join/kiosk).NEXT_PUBLIC_*is baked at build time — ensure prod builds never ship it enabled; ideally also gate on a runtime dev check). Never weaken the real Turnstile/human gate in production.Notes / context
DEV_AUTH_BYPASS+ the prod-safeis_inert_dev_tokenguards.~/wrzdj-testingsuite + Playwrighte2e/guest specs can run fully headless.Testing
02-guest-request/04-search-pipelinepass headless against a dev stack with both flags on