Playwright · Junior · Question 53 of 75

What does screenshot: 'only-on-failure' in use do?

Show the answer

Correct answer: Attaches a screenshot to the report when a test fails

Explanation

Failure screenshots help diagnose problems without rerunning. Videos and traces have similar options.

Further reading

Problem with a question

Playwright · Junior · question 53

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