I have a step which looks like so:
this.When(/^I send a (get|put|post|delete) request to (.*) with payload$/, function(requestType, route, callback) {...});
I have stuff which uses it like so:
And I send a post request to users/password/change with payload
For some reason the code inside the step is never run. I have hollowed it out and just put a console log and then callback and it never gets output. The step before does not error and returns fine so I am baffled as to why this one step seems to never execute, but is flagged on the runner as succeeding, then just skipping all subsequent steps.
So has anyone seen anything like this before or know a way to debug to find out whats going on? I have tried catching unhandled exceptions and outputting them and nothing seems to be kicking off from there. Have tried putting dummy steps before it and that doesn't change it.
I am using 0.9.2 cucumber, 0.12 nodeJS, and am running via the webstorm cucumber runner, although I get same results on the normal CLI runner.