Skip to content

Commit

Permalink
docs: mention that globalSetup does not respect config options
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Apr 30, 2024
1 parent 6c82712 commit 49ca2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/test-global-setup-teardown-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ You can use the `globalSetup` option in the [configuration file](./test-configur
Similarly, use `globalTeardown` to run something once after all the tests. Alternatively, let `globalSetup` return a function that will be used as a global teardown. You can pass data such as port number, authentication tokens, etc. from your global setup to your tests using environment variables.

:::note
Using `globalSetup` and `globalTeardown` will not produce traces or artifacts. If you want to produce traces and artifacts, use [project dependencies](#option-1-project-dependencies).
Using `globalSetup` and `globalTeardown` will not produce traces or artifacts, and options like `headless` or `testIdAttribute` specified in the config file are not applied. If you want to produce traces and artifacts and respect config options, use [project dependencies](#option-1-project-dependencies).
:::

```js title="playwright.config.ts"
Expand Down

0 comments on commit 49ca2e9

Please sign in to comment.