@cucumber/core
    Preparing search index...

    Interface AssembledTestStep

    A test step that belongs to an AssembledTestCase

    interface AssembledTestStep {
        always: boolean;
        id: string;
        name: { body: string; prefix: string };
        sourceReference: SourceReference;
        prepare(): PreparedStep | UndefinedStep | AmbiguousStep;
        toMessage(): TestStep;
    }
    Index

    Properties

    always: boolean

    Whether this test step should always be executed even if preceding ones fail

    id: string

    A unique identifier for this test step

    name: { body: string; prefix: string }

    A non-unique name for this test step

    sourceReference: SourceReference

    A reference to the source of this test step in the Gherkin document

    For pickle steps, this will be the line the step is on. For hook steps, this will be the line the pickle is on.

    Methods

    • Prepare the test step for execution

      Returns PreparedStep | UndefinedStep | AmbiguousStep

      For pickle steps, preparation includes finding matching step definitions from the support code library and returning the appropriate result. If there are no matches, an UndefinedStep is returned. If there are multiple matches, an AmbiguousStep is returned. Otherwise, a PreparedStep is returned with the correct arguments from across expressions, doc strings and data tables. The consumer can then call the function with the right arrangement of those arguments plus anything else as appropriate.

    • Converts the step to a TestStep message

      Returns TestStep