Playwright · Junior · Question 75 of 75
Where should Playwright tests get their test data?
- 1Created by the test or a fixture, not left from earlier runs
- 2Whatever happens to be in the shared staging database
- 3Data that a previous test in the same file created
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.