Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: Add notes on calling test.use() with worker-scoped fixtures #33316

Open
vitalets opened this issue Oct 27, 2024 · 0 comments
Open

[Docs]: Add notes on calling test.use() with worker-scoped fixtures #33316

vitalets opened this issue Oct 27, 2024 · 0 comments
Labels
open-to-a-pull-request The feature request looks good, we are open to reviewing a PR P3-collecting-feedback

Comments

@vitalets
Copy link
Contributor

Page(s)

https://playwright.dev/docs/next/api/class-test#test-use

Description

Add 2 notes on calling test.use with worker-scoped fixtures:

  • calling test.use with worker-scoped fixture is allowed only on top-level of file, not inside any describe block
  • calling test.use with worker-scoped fixture forces the whole file to be executed in a new worker

The latter one is especially important, because I was curios why my tests started to run in a new worker after I disabled screenshots:

test.use({ screenshot: 'off' });
@vitalets vitalets changed the title [Docs]: [Docs]: Add notes on calling test.use() with worker-scoped fixtures Oct 27, 2024
@Skn0tt Skn0tt self-assigned this Oct 28, 2024
@Skn0tt Skn0tt added the v1.49 label Oct 28, 2024
@mxschmitt mxschmitt added open-to-a-pull-request The feature request looks good, we are open to reviewing a PR and removed v1.49 labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-to-a-pull-request The feature request looks good, we are open to reviewing a PR P3-collecting-feedback
Projects
None yet
Development

No branches or pull requests

3 participants