alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 82 forks source link

Support for "word1/word2" Step Definition #262

Closed ravichandra068 closed 5 years ago

ravichandra068 commented 5 years ago

Describe the bug We have steps that look similar to:

I click on link/button/radio in Section A

The above steps are not recognized by the plugin. However, the below step definition is recognized:

I click on link/button in Section A

This kinda shows that if we were to give more than 1 "/", the plugin is unable to map the step to the corresponding step definition

To Reproduce Try creating a step in the Feature file like this:

When I click on radio in Section A

And the step definition looks like this:

I click on link/button/radio in Section A

Expected behavior Even with the presence of multiple "/" between words, the plugin should be able to recognize the step definition for the corresponding step

Screenshots N/A

Cucumberautocomplete part of VSCode settings:

"cucumberautocomplete.steps": [
        "src/_tests_/acceptance/step-definitions/*.js",
        "src/_tests_/acceptance/step-definitions/**/*.js"
    ],
    "cucumberautocomplete.syncfeatures": "src/_tests_/acceptance/features/*.feature"

Step definition: If applicable, add example of step definition:

When('I click on {string} link/button/radio in {string} section', function (linkText, sectionName) {
//Function Code
});

Gherkin step line When I click on "ABCC" radio in "Bias" section

alexkrechik commented 5 years ago

Should be fixed in 2.14.0