feat(e2e): Playwright AUTH-004 PR-gate against prod (Layer 1)#153
Merged
Merged
Conversation
Per-PR Chromium smoke against api.instanode.dev. Three asserts:
1. CORS preflight returns ACAO=<web_origin> and ACAC=true
2. cross-origin POST from web origin completes (no 'Failed to fetch')
3. POST /auth/email/start returns 202 {ok:true}
Closes the pre-merge gap for the 2026-05-29 → 2026-05-30 login regression
class. The worker auth-probe catches it 5 min post-deploy; the OpenAPI
contract CI catches schema drift; this catches the end-to-end browser
traversal at PR time. Bounded ~3s test + npm/Playwright setup ~90s.
Triggers: pull_request to main, push to main, workflow_dispatch (with
optional E2E_API_URL/E2E_WEB_ORIGIN override), and repository_dispatch
type 'auth-contract-e2e-from-api' (api repo will fire this from its CI
in a follow-up PR — closes cross-repo gap).
Local verify: 3/3 passed against PROD in 2.8s.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
size-limit report 📦
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per-PR Chromium smoke against api.instanode.dev. 3/3 passed locally in 2.8s.
Why
The 2026-05-29 → 2026-05-30 login outage had 3 stacked failures (web missing exchange POST, web preflight header, api missing ACAC). Worker auth-probe catches 5min post-deploy; OpenAPI contract CI catches schema drift; NOTHING caught the end-to-end browser traversal at PR time. This closes that gap.
What
e2e/auth-contract.spec.tsasserts:Triggers: pull_request to main, push to main, workflow_dispatch (with env override), repository_dispatch type
auth-contract-e2e-from-api(api follow-up PR will wire this).Coverage (rule 17)