Cucumber Support
ardavis opened this issue · 0 comments
ardavis commented
I am trying to add the ability for jumping to a Cucumber step from the definition, but I have a question. Is it possible to use capture groups in the word:
definition of config.js
.
Example:
I am here:
Then I go to this awesome step
And I want to jump to:
Then(^I go to this awesome step$) do
I tried setting the word to:
word: /[0-9a-zA-Z_ ]+/
Unfortunately that includes the term "Then", which shouldn't be there. So I attempted to do:
word: /(Given|When|Then|And)\(.*\)/
But no such luck.
Thoughts on proceeding?