Playwright · Junior · Question 62 of 75
Why should each test be able to run on its own?
- 1Tests run in parallel and in any order
- 2Playwright deletes the test after it runs
- 3Shared state makes reports load slowly
Show the answer
Correct answer: Tests run in parallel and in any order
Explanation
Playwright runs files in parallel workers and may retry single tests. A test that needs another one to run first breaks in those cases.