Test an authenticated preview without overstating the result
A reachable preview can prove that a protected URL responds. It cannot, by itself, prove that an application session works, the intended revision is deployed, or database and API acceptance succeeded.
First published ·Last updated
On this page
Four separate checks
Preview testing layersScroll sideways for more columns.
Layer
Question answered
Does not establish
Preview protection
Can the test runner reach the hosted preview through platform access controls?
That the application user is signed in.
Application login
Can a scoped test account establish the expected app session?
That protected workflows pass.
Readiness
Can the preview serve the named route or health signal without an immediate startup failure?
That behavior, persistence, or integrations meet acceptance criteria.
Assertions
Did named UI expectations pass at the route and viewport recorded in the run?
That untested database and API contracts were accepted.
Check each layer in your pipeline
Preview protection. In your own end-to-end suite, use the platform's documented automation access. On Vercel that is Protection Bypass for Automation: send the project's secret in an x-vercel-protection-bypass header, read from a CI secret.
Application login. Sign in with a dedicated, least-privilege test account, and save the browser state only where the next section says.
Readiness and assertions. Wait for the named route or health signal, then run your named checks at the routes and screen sizes you record. Keep failures, blocks and unrun checks in the same result.
Sybqa. Point Sybqa at a URL a browser can reach without access controls: an unprotected preview, a staging domain you chose, or production after promotion. The CI guide starts a saved plan from your pipeline. Hosted Sybqa does not send a protection bypass header, sign in with test accounts or fill password fields, so on a protected preview its checks are blocked, not passed.
Treat stored session state as a credential
Create the test session in CI from the test account’s secrets. Do not reuse a session saved on a developer machine.
Use a dedicated, least-privilege test account. Do not use a personal administrator session.
Keep any hosted auth state in an ignored local path outside source control. Browser state can contain cookies and headers that impersonate the test account.
Do not paste passwords, bypass tokens, cookies, or saved state into command history, issue text, screenshots, or reports.
Playwright documents storing authenticated browser state and explicitly warns against committing it: Authentication. For Vercel preview automation, use its documented preview protection mechanism and verify the preview URL before running browser tests: Vercel preview E2E guidance.
Read the result in layers
Reachable
Preview protection and readiness succeeded for the recorded URL. This is deployment reachability evidence only.
Authenticated
The scoped app session was established. It does not prove every role, path, or external integration.
Asserted
Named checks passed with captured evidence. Keep failures, blocks, and unrun checks in the same report.
Still unverified
Deployed revision, database acceptance, API acceptance, and provider behavior need separate matching evidence.