Playwright · Middle · Question 24 of 75

What does test.step give you?

Show the answer

Correct answer: Named steps in reports and traces

Explanation

Steps group actions under readable names, so a failure shows "Add item to cart" instead of a raw locator.

Further reading

Problem with a question

Playwright · Middle · question 24

Test yourself

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

Take this quiz