Skip to content

Previous step information not set in scenario outlines #203

@jdebbink

Description

@jdebbink

When using a BeforeStep in a scenario outline, no information is available about the previous step.

this.BeforeStep(function (step, callback) {
   var stepInfo = step.getPayloadItem('step');
   var prevStep = stepInfo.getPreviousStep(); // always undefined in a scenario outline
   if (stepInfo.isOutcomeStep() && stepInfo.isPrecededByEventStep()) {
      // I want to snapshot the state of the system only on the first 'Then'
      // but I will never get in this if block from a scenario outline
   }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions