Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous step information not set in scenario outlines #203

Closed
jdebbink opened this issue Jul 2, 2014 · 3 comments
Closed

Previous step information not set in scenario outlines #203

jdebbink opened this issue Jul 2, 2014 · 3 comments

Comments

@jdebbink
Copy link

jdebbink commented Jul 2, 2014

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
   }
});
@aslakhellesoy
Copy link
Contributor

Eeeew @jbpros you added BeforeStep? :-)

@jbpros
Copy link
Member

jbpros commented Sep 5, 2014

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?

@jbpros jbpros closed this as completed Sep 5, 2014
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants