I have the scenario like:
- Given I go to this page
- When I type cucumber
- And I click
- Then I should see the text
- And I should not see the line
If I run this scenario it will execute all the 5 steps. But I want to skip the 4th step (Then I should see the text) and execute the 5th step.
Please give me your suggestions. Thanks in advance. 🙂
Best Answer
TL;DR - don't do it - you're (probably) getting it wrong. And you can't (easily) do it. As Aslak wrote (one of Cucumber main creators):
Whole discussion is here: http://comments.gmane.org/gmane.comp.programming.tools.cucumber/10146