Skip to content

Commit b1a415c

Browse files
committed
docs: update testing.md
- Add troubleshooting section - Explain how to limit the number of workers
1 parent e8b6333 commit b1a415c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/TESTING.md

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ To execute end-to-end tests normally (i.e. not in debug mode), use the following
1818
npm run test:e2e
1919
```
2020

21+
### Troubleshooting
22+
2123
If this is your first time running the tests you may need to install the Playwright browser drivers:
2224

2325
```sh
@@ -26,6 +28,14 @@ npx playwright install
2628

2729
If something fails read the Playwright error carefully as it usually describes a quick fix. You can also look for the error in the [Playwright GitHub Issues](https://github.com/microsoft/playwright/issues) if you need more help.
2830

31+
If you continue to get unexplained failures another thing you can try is [limit the number of workers](https://playwright.dev/docs/test-parallel#limit-workers) in [playwright.config.ts](../playwright.config.ts):
32+
33+
```json
34+
{
35+
"workers": 1
36+
}
37+
```
38+
2939
### Debug
3040

3141
The debug test script runs the [Playwright inspector](https://playwright.dev/docs/inspector), which runs in headed debug mode so you can step through tests and watch them as they execute.

0 commit comments

Comments
 (0)