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

Allow for multiple When and Then clauses #11

Closed
muxa opened this issue Oct 16, 2013 · 2 comments
Closed

Allow for multiple When and Then clauses #11

muxa opened this issue Oct 16, 2013 · 2 comments

Comments

@muxa
Copy link

muxa commented Oct 16, 2013

For instance

Given a scenario
  When there's one when clause
    And there's another when clause
  Then should check execute both clauses
    And do additional checks

This gives a more granular control, i.e. can create smaller steps and combine them.

@smhabdoli
Copy link

I think we can do that by using a stack array, then we can push and pop. what do you think?

@MorganPersson
Copy link
Member

First, sorry for the late answer, somehow email notifications where set to off.

If I understand you question correctly that does already work.
For example this works fine:

Scenario: title
    Given text1
        And text2
        And text3
    When action1
    Then stuff1
        And stuff2
    When action2
    Then stuff3
    Then stuff4
        And stuff5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants