Skip to content

Does Testomat support custom @step decorators in Playwright?

No, Testomat does not fully support importing steps created via custom @step decorators in Playwright projects.

  1. Use explicit test.step(...) in spec files

    • Write your steps directly in the spec files using test.step(...) to ensure Testomat imports and displays the test case structure correctly.
  2. Avoid using custom decorators for steps

    • Custom decorators that wrap test.step(...) are not fully supported by Testomat’s import process, which only analyzes spec files and not runtime calls within POM/decorators.
  • The import process in Testomat works through static analysis of source code and does not execute tests, which means it cannot reliably identify steps created through custom decorators.