Playwright · Middle · Question 62 of 75

What happens to the worker process after a test fails?

Show the answer

Correct answer: It's discarded, and a new worker starts for later tests

Explanation

Playwright starts a fresh worker after a failure so broken state doesn't affect other tests. beforeAll hooks run again in it.

Further reading

Problem with a question

Playwright · Middle · question 62

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