docs(vscode): outline more that global teardown needs to be executed manually (#33221)

This commit is contained in:
Max Schmitt 2024-10-22 14:25:23 +02:00 committed by GitHub
parent ef84051c91
commit 131f8b39c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,7 +202,7 @@ To run the **setup** test only once, deselect it from the projects section in th
## Global Setup
**Global setup** tests are run when you execute your first test. This runs only once and is useful for setting up a database or starting a server. You can manually run a **global setup** test by clicking the `Run global setup` option from the **Setup** section in the Playwright sidebar. You can also run **global teardown** tests by clicking the `Run global teardown` option.
**Global setup** runs when you execute your first test. It runs only once and is useful for setting up a database or starting a server. You can manually run **global setup** by clicking the `Run global setup` option from the **Setup** section in the Playwright sidebar. **Global teardown** does not run by default; you need to manually initiate it by clicking the `Run global teardown` option.
Global setup will re-run when you debug tests as this ensures an isolated environment and dedicated setup for the test.