You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
});
The text was updated successfully, but these errors were encountered:
I can't reproduce this. Probably fixed by 4f6bcc4.
@jdebbink feel free to reopen if it is still relevant.
@aslakhellesoy I'm still not super enthusiastic about those. See #130 (comment). All those BeforeX/AfterX are (undocumented) shortcuts to the event handling subsystem and I'm still considering their removal before 1.0. WDYT?
When using a BeforeStep in a scenario outline, no information is available about the previous step.
The text was updated successfully, but these errors were encountered: