Playwright · Junior · Question 62 of 75

Why should each test be able to run on its own?

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.

Further reading

Problem with a question

Playwright · Junior · question 62

Test yourself

Take the Playwright · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz