docs: discourage test lists (#22125)

Fixes https://github.com/microsoft/playwright/issues/22109
This commit is contained in:
Yury Semikhatsky 2023-03-31 11:10:13 -07:00 committed by GitHub
parent 47c669caf2
commit e86b0cf0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,10 @@ When you **disable parallel test execution**, Playwright Test runs test files in
### Use a "test list" file
:::warning
Tests lists are discouraged and supported as a best-effort only. Some fetures such as VS Code Extension and tracing may not work properly with test lists.
:::
You can put your tests in helper functions in multiple files. Consider the following example where tests are not defined directly in the file, but rather in a wrapper function.
```js