Playwright · Senior · Question 10 of 77

How would you design fixtures for a pool of test accounts in parallel runs?

Show the answer

Correct answer: Worker-scoped fixture that gives each worker its own account

Explanation

Each worker gets an account by workerIndex or creates one at start, so tests in different workers never fight over the same data.

Further reading

Problem with a question

Playwright · Senior · question 10

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
How would you design fixtures for a pool of test accounts in… - Playwright Senior interview question