预览版本
介绍
🌐 Introduction
Playwright for Node.js 有一个 canary 发布系统。
🌐 Playwright for Node.js has a canary releases system.
它允许你测试新的未发布功能,而无需等待完整版本发布。这些功能每天都会通过 Playwright 的 next NPM 标签发布。
🌐 It permits you to test new unreleased features instead of waiting for a full release. They get released daily on the next NPM tag of Playwright.
这是一个向维护者提供反馈的好方法,以确保新实现的功能按预期工作。
🌐 It is a good way to give feedback to maintainers, ensuring the newly implemented feature works as intended.
在生产中使用预览版本似乎有风险,但实际上并非如此。
🌐 Using a canary release in production might seem risky, but in practice, it's not.
金丝雀发布通过所有自动化测试,并用于测试例如 HTML 报告、Trace Viewer 或 Playwright Inspector 的端到端测试。
🌐 A canary release passes all automated tests and is used to test e.g. the HTML report, Trace Viewer, or Playwright Inspector with end-to-end tests.
下一个 npm Dist 标签
🌐 Next npm Dist Tag
对于 main 上的任何与代码相关的提交,持续集成将会在 @next npm 分发标签下发布每日预览版本。
🌐 For any code-related commit on main, the continuous integration will publish a daily canary release under the @next npm dist tag.
你可以在 npm 上查看当前的发行标签:
🌐 You can see on npm the current dist tags:
latest:稳定版本next:下一个版本,每日发布beta:发布分支被削减后,通常是稳定版本发布前一周,每个提交都会在此标签下发布
使用预览版本
🌐 Using a Canary Release
npm install -D @playwright/test@next
文档
🌐 Documentation
稳定版和 next 文档发布在 playwright.dev。要查看 next 文档,请在键盘上按 Shift 共 5 次。