Skip to content

Publish @next/playwright to npm as part of canary releases#90738

Merged
acdlite merged 1 commit intovercel:canaryfrom
acdlite:publish-next-playwright
Mar 2, 2026
Merged

Publish @next/playwright to npm as part of canary releases#90738
acdlite merged 1 commit intovercel:canaryfrom
acdlite:publish-next-playwright

Conversation

@acdlite
Copy link
Contributor

@acdlite acdlite commented Mar 1, 2026

@next/playwright is an experimental package that provides Playwright helpers for testing Next.js navigation behavior. Its main feature is an instant() API that lets you assert whether a route is correctly structured for instant navigation — rendering only cached/prefetched content without waiting for dynamic data.

The package requires Cache Components to be enabled. It works by setting a cookie that tells Next.js to serve only cached data during navigations, deferring dynamic content until the cookie is cleared. The design is intentionally thin so that other testing frameworks can replicate the same mechanism.

Removing the "private" field so the package is included in the next canary publish.

@nextjs-bot nextjs-bot added the created-by: Next.js team PRs by the Next.js team. label Mar 1, 2026
@acdlite acdlite marked this pull request as ready for review March 1, 2026 23:28
@next/playwright is an experimental package that provides Playwright
helpers for testing Next.js navigation behavior. Its main feature is
an `instant()` API that lets you assert whether a route is correctly
structured for instant navigation — rendering only cached/prefetched
content without waiting for dynamic data.

The package requires Cache Components to be enabled. It works by
setting a cookie that tells Next.js to serve only cached data during
navigations, deferring dynamic content until the cookie is cleared.
The design is intentionally thin so that other testing frameworks can
replicate the same mechanism.

Removing the "private" field so the package is included in the next
canary publish.
@acdlite acdlite force-pushed the publish-next-playwright branch from 3ba0363 to 93d1130 Compare March 2, 2026 00:40
@acdlite acdlite merged commit c300a63 into vercel:canary Mar 2, 2026
146 of 147 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

created-by: Next.js team PRs by the Next.js team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants