Playwright · Junior · Question 54 of 75
Why is trace: 'on-first-retry' a common setting?
- 1It records traces only when a failed test is retried
- 2It turns off tracing for tests that are retried
- 3It records a trace for every test on every run
Show the answer
Correct answer: It records traces only when a failed test is retried
Explanation
Traces are very useful but cost time and disk. Recording them on the first retry captures most failures in CI cheaply.