Skip to content

Commit 51380f9

Browse files
committed
fix(docs): update testing docs to match reality after #8569
1 parent d4dab68 commit 51380f9

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎TESTING.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,20 @@ Sets the number of iterations each test uses by default.
232232

233233
### Running tests in the browser
234234

235-
Normally we use `CLIENT=firefox` to run a set of tests in the browser
236-
automatically. This opens a browser window, automatically runs the requested
237-
tests in it, and reports the results back to the shell.
235+
To run tests in the browser, you first have to install playwright:
236+
237+
```shell
238+
npx playwright install
239+
```
240+
241+
This will download the `firefox`, `chromium` and `webkit` `CLIENT`s onto
242+
your system.
243+
244+
PouchDB is tested with `CLIENT=firefox`, `CLIENT=chromium` and `CLIENT=webkit`
245+
to run a set of tests in the browser automatically. This runs these browsers
246+
in a “headless” mode and prints the test results back into the terminal.
247+
248+
$ CLIENT=firefox npm test
238249

239250
You can also run browser tests in a more "manual" fashion by running the dev
240251
server and opening a browser window yourself. To run the server:

0 commit comments

Comments
 (0)