Playwright · Senior · Question 33 of 77

What does box: true on a test.step do?

Show the answer

Correct answer: Errors point to the step call, not code inside it

Explanation

In page object methods, boxing hides internal lines, so the report points to the line in the test that called the method.

Further reading

Problem with a question

Playwright · Senior · question 33

Test yourself

Take the Playwright · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz