Playwright · Senior · Question 28 of 77

What is the trade-off of sharing one page across tests with a worker-scoped fixture?

Show the answer

Correct answer: Faster tests but shared state and loss of isolation

Explanation

Reusing a page skips setup but lets state leak between tests, so a failure can cascade. Use it only for read-only, very slow setups.

Further reading

Problem with a question

Playwright · Senior · question 28

Test yourself

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

Take this quiz