docs/src/test-reporter-api/class-teststep.md
Represents a step in the [TestRun].
Step category to differentiate steps with different origin and verbosity. Built-in categories are:
expect for expect callsfixture for fixtures setup and teardownhook for hooks initialization and teardownpw:api for Playwright API calls.test.step for test.step API calls.test.attach for testInfo.attach API calls.Running time in milliseconds.
Optional location in the source where the step is defined.
Error thrown during the step execution, if any.
Parent step, if any.
Start time of this particular test step.
List of steps inside this step.
type <[string]> Annotation type, for example 'skip'.description ?<[string]> Optional description.location ?<[Location]> Optional location in the source where the annotation is added.The list of annotations applicable to the current test step.
name <[string]> Attachment name.contentType <[string]> Content type of this attachment to properly present in the report, for example 'application/json' or 'image/png'.path ?<[string]> Optional path on the filesystem to the attached file.body ?<[Buffer]> Optional attachment body used instead of a file.The list of files or buffers attached in the step execution through [method: TestInfo.attach].
User-friendly test step title.
Returns a list of step titles from the root step down to this step.