Skip to content

Commit

Permalink
chore: add a hint about what provider to use
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 31, 2024
1 parent c47c381 commit cf3f622
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/guide/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ bun add -D vitest @vitest/browser

::: warning
However, to run tests in CI you need to install either [`playwright`](https://npmjs.com/package/playwright) or [`webdriverio`](https://www.npmjs.com/package/webdriverio). We also recommend switching to either one of them for testing locally instead of using the default `preview` provider since it relies on simulating events instead of using Chrome DevTools Protocol.

If you don't already use one of these tools, we recommend starting with Playwright because it supports parallel execution, which makes your tests run faster. Additionally, the Chrome DevTools Protocol that Playwright uses is generally faster than WebDriver.
:::

### Using Playwright

[Playwright](https://npmjs.com/package/playwright) is a framework for Web Testing and Automation.

::: code-group
```bash [npm]
npm install -D vitest @vitest/browser playwright
Expand All @@ -68,6 +72,8 @@ bun add -D vitest @vitest/browser playwright

### Using Webdriverio

[WebdriverIO](https://www.npmjs.com/package/webdriverio) allows you to run tests locally using the WebDriver protocol.

::: code-group
```bash [npm]
npm install -D vitest @vitest/browser webdriverio
Expand Down

0 comments on commit cf3f622

Please sign in to comment.