You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/1.getting-started/11.testing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In order to allow you to manage your other testing dependencies, `@nuxt/test-uti
16
16
17
17
- you can choose between `happy-dom` and `jsdom` for a runtime Nuxt environment
18
18
- you can choose between `vitest`, `cucumber`, `jest` and `playwright` for end-to-end test runners
19
-
-`playwright-core` is only required if you wish to use the built-in browser testing utilities
19
+
-`playwright-core` is only required if you wish to use the built-in browser testing utilities (and are not using `@playwright/test` as your test runner)
20
20
21
21
::code-group
22
22
```bash [yarn]
@@ -388,7 +388,7 @@ await setup({
388
388
389
389
## End-To-End Testing
390
390
391
-
For end-to-end testing, we support [Vitest](https://github.com/vitest-dev/vitest) and [Jest](https://jestjs.io) as test runners.
391
+
For end-to-end testing, we support [Vitest](https://github.com/vitest-dev/vitest), [Jest](https://jestjs.io), [Cucumber](https://cucumber.io/) and [Playwright](https://playwright.dev/) as test runners.
We provide built-in support using Playwright within `@nuxt/test-utils`, but you can also use other test runners for end-to-end browser testing.
496
+
We provide built-in support using Playwright within `@nuxt/test-utils`, either programmatically or via the Playwright test runner.
497
497
498
498
#### `createPage(url)`
499
499
500
-
You can create a configured Playwright browser instance, and (optionally) point it at a path from the running server. You can find out more about the API methods available from [in the Playwright documentation](https://playwright.dev/docs/api/class-page).
500
+
Within `vitest`, `jest` or `cucumber`, you can create a configured Playwright browser instance with `createPage`, and (optionally) point it at a path from the running server. You can find out more about the API methods available from [in the Playwright documentation](https://playwright.dev/docs/api/class-page).
0 commit comments