[Docs]: Add notes on calling test.use() with worker-scoped fixtures #33316
Labels
open-to-a-pull-request
The feature request looks good, we are open to reviewing a PR
P3-collecting-feedback
Page(s)
https://playwright.dev/docs/next/api/class-test#test-use
Description
Add 2 notes on calling
test.use
with worker-scoped fixtures:test.use
with worker-scoped fixture is allowed only on top-level of file, not inside any describe blocktest.use
with worker-scoped fixture forces the whole file to be executed in a new workerThe latter one is especially important, because I was curios why my tests started to run in a new worker after I disabled screenshots:
The text was updated successfully, but these errors were encountered: