Playwright · Senior · Question 28 of 77
What is the trade-off of sharing one page across tests with a worker-scoped fixture?
- 1Better isolation but much slower test runs
- 2No trade-off; it's the default in Playwright
- 3Faster tests but shared state and loss of isolation
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.