-
-
Notifications
You must be signed in to change notification settings - Fork 151
Add cucumber code snippet #799
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
Comments
Elaborate. |
Reference: https://github.com/cucumber/cucumber-js/blob/main/docs/snippets.md Being lazy and efficient. In most standard cucumber frameworks you can run cucumber steps, which are missing step definitions, execute the scenario via terminal and it will provide a cucumber snippet. ? Given I do something
|
Closely related to #754, where I actually have implemented snippet suggestions. I don't have time to continue on it right now though. |
This has been introduced with v13.0.0. |
@badeball Thank you, but if I wirte When or Then I get always a Given as suggestion. And the placeholder for string etc. aren't inside the suggestion. Can you extend the feature? |
What do you mean by this? |
@badeball here an example Scenario: test
Given here a text with content "hallo world" the suggestion should be link this Given(here a text with content {string}', (value) => {
// Write code here that turns the phrase above into concrete actions
console.log('value', value)
return 'pending';
}); |
I've opened a separate issue with this here. Feel free to take a stab at this yourself. |
Current behavior
Desired behavior
Test code to reproduce
Versions
Checklist
[email protected]
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: