Playwright · Middle · Question 10 of 75

What is a worker-scoped fixture?

Show the answer

Correct answer: Set up once per worker process and shared by its tests

Explanation

Declare it with { scope: 'worker' }. It suits expensive things like a test account or a started service, shared by all tests in that worker.

Further reading

Problem with a question

Playwright · Middle · question 10

Test yourself

Take the Playwright · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz