Playwright · Junior · Question 75 of 75

Where should Playwright tests get their test data?

Show the answer

Correct answer: Created by the test or a fixture, not left from earlier runs

Explanation

Tests that create their own data (via API or fixtures) are independent, repeatable and safe to run in parallel.

Further reading

Problem with a question

Playwright · Junior · question 75

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