Skip to content
masterclass Buddy

Playwright · Function

test.step

test.step() groups test actions into a named report step. It supports nesting, returned values, and options for error location and report details.

Last updated

Since
v1.10

Syntax

test.step(title, body, options?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • TestStep
  • test.step.skip
  • testInfo.attach
  • testStepInfo.skip
  • Tracing.group

Source: Playwright Test | Playwright. Checked 2026-11-03.