Playwright · Senior · Question 35 of 77
Where should a test write temporary files so parallel tests don't clash?
- 1To the project root with a fixed file name
- 2To the system temp folder with a shared name
- 3To
testInfo.outputPath(), unique per test
Show the answer
Correct answer: To testInfo.outputPath(), unique per test
Explanation
Output paths are per test and per retry, and are kept with other test results.