Playwright · Junior · Question 54 of 75

Why is trace: 'on-first-retry' a common setting?

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.

Further reading

Problem with a question

Playwright · Junior · question 54

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