Run Playwright e2e on Vercel preview deployments (deployment_status) - #170
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mkayander
marked this pull request as ready for review
August 22, 2026 19:13
- Add .github/workflows/e2e-preview.yml: waits for preview 200, runs test:e2e - vercelPreviewHeaders helper for Deployment Protection bypass (CI + preview-smoke) - Skip Postgres globalSetup and webServer when PLAYWRIGHT_BASE_URL is set - Document e2e/preview-smoke in AGENTS.md Co-authored-by: Max Kayander <mkayander@users.noreply.github.com>
next/router throws under App Router (NextRouter not mounted), causing __next_error__ on pilot playground e2e. Use usePagesRouterCompat + usePlaygroundRoute for isRouteReady on App vs Pages. Also emit HTML Playwright report in CI and fix artifact name sha fallback.
cursor
Bot
force-pushed
the
cursor/e2e-vercel-preview-8f0a
branch
from
August 22, 2026 19:17
ee5a381 to
95b845c
Compare
Bump checkout/setup-node/cache/upload-artifact to v6/v7 and pnpm/action-setup to v6 to silence Node 20 deprecation warnings.
Match e2e-preview.yml: checkout/setup-node/cache v6/v7, pnpm/action-setup v6.
|
🎉 This PR is included in version 1.384.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Hooks Playwright e2e into each successful Vercel preview deployment via GitHub's
deployment_statusevent.Changes
.github/workflows/e2e-preview.yml— auto-runs on Preview deploy success; HTML report artifactvercelPreviewHeaders— Deployment Protection bypass for CI and preview-smokeuseProjectPanelData—usePagesRouterCompat+usePlaygroundRouteinstead ofnext/router(fixes App pilot playground__next_error__)PLAYWRIGHT_BASE_URLis setOne-time setup
Add GitHub secret VERCEL_AUTOMATION_BYPASS_SECRET (Vercel → Deployment Protection → Protection Bypass for Automation).
Testing
pnpm lint— 0 errorspnpm test:e2e— 7/7 locally (including playground pilot)