-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Generated step definition snippets are not found #732
Comments
Thanks for the issue. My guess would be the brackets are not being escaped when the string is converted to a regex |
Thanks. I'll try and investigate. @charlierudolph Can I default the snippet style to regex? |
@temyers the brackets not being escaped unfortunately is a an issue with one of cucumber-js dependencies (see the linked issue). For now, there is no way to switch back to regex for snippets. I don't think that would be too hard to build however. @aslakhellesoy any objection to adding in a switch to allow the snippet pattern format to be regex instead of cucumber expressions? The default will still be cucumber expressions |
This was fixed with the upgrade to [email protected]. I'm going to break out the ability to change the default snippet style into its own story. |
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. |
I'm running
2.0.0-rc.6
Given a feature file:
When I run cucumberjs, it outputs the following snippet:
When I add the snippet in a step definitions file, the method is not called/found. The same output above is produced.
But, re-writing the step definition to use regular expression:
Then step is found, and marked as pending (expected output)
The text was updated successfully, but these errors were encountered: