• Parameters

    • Optional name: string

      Step display name in Allure report. Defaults to the method name.

    Returns ((target, context) => void)

      • (target, context): void
      • Parameters

        • target: any
        • context: any

        Returns void

    Description

    Decorator that marks a method as a named Allure step within a Scenario.

    Example

    class MyScenario extends Scenario {
    @Step('Do something')
    async doSomething() { ... }
    }