Skip to content

Commit 6c461cd

Browse files
authored
Merge pull request #801 from SaKaNa-Y/patch-2
docs: Translate limitations section to Chinese
2 parents 44be472 + 92d3105 commit 6c461cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guide/browser/preview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export default defineConfig({
2222

2323
This will open a new browser window using your default browser to run the tests. You can configure which browser to use by setting the `browser` property in the `instances` array. Vitest will try to open that browser automatically, but it might not work in some environments. In that case, you can manually open the provided URL in your desired browser.
2424

25-
## Differences with Other Providers
25+
## 与其他 Providers 的差异
2626

27-
The preview provider has some limitations compared to other providers like [Playwright](/guide/browser/playwright) or [WebdriverIO](/guide/browser/webdriverio):
27+
[Playwright](/guide/browser/playwright) [WebdriverIO](/guide/browser/webdriverio) 等其他 Providers 相比,预览服务存在一些限制:
2828

29-
- It does not support headless mode; the browser window will always be visible.
30-
- It does not support multiple instances of the same browser; each instance must use a different browser.
31-
- It does not support advanced browser capabilities or options; you can only specify the browser name.
32-
- It does not support CDP (Chrome DevTools Protocol) commands or other low-level browser interactions. Unlike Playwright or WebdriverIO, the [`userEvent`](/guide/browser/interactivity-api) API is just re-exported from [`@testing-library/user-event`](https://www.npmjs.com/package/@testing-library/user-event) and does not have any special integration with the browser.
29+
- 它不支持无头模式; 浏览器窗口始终可见.
30+
- 它不支持同一浏览器的多个实例; 每个实例必须使用不同的浏览器.
31+
- 它不支持高级浏览器功能或选项; 你只能指定浏览器名称.
32+
- 它不支持 CDPChrome DevTools 协议)命令或其他低层浏览器交互. 与 Playwright WebdriverIO 不同, [`userEvent`](/guide/browser/interactivity-api) API 只是从 [`@testing-library/user-event`](https://www.npmjs.com/package/@testing-library/user-event) 重新导出, 没有与浏览器的特殊集成.

0 commit comments

Comments
 (0)