Playwright · Middle · Question 62 of 75
What happens to the worker process after a test fails?
- 1It's discarded, and a new worker starts for later tests
- 2It keeps running the next tests with the same state
- 3The whole run stops at the first failed test
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.