-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
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
Labels
No labels