Skip to content

端到端(E2E)测试

Playwright

Playwright 是目前唯一适合编写 Chrome 扩展端到端测试的优秀选择。

要为你的项目添加 E2E 测试,请参考 Playwright 的 Chrome Extension 文档。当你需要传递扩展的路径时,请传递输出目录 /path/to/project/.output/chrome-mv3

完整示例请参见 WXT 的 Playwright 示例