Open mjaramillob0613 opened 2 years ago
@alexkrechik Can you please help me 😢
I'm having the same issue!
@mjaramillob0613 could you please provide a feature line example? Not sure that I properly understand the issue. looks like that "parameter":"(?P<store>.+)",
should be used for the @step('I add parking to cart in "(?P<store>.+)"')
step.
@alexkrechik Feature line example: When I add parking to cart in "dinning_store"
Step definition:
@when('I add parking to cart in "(?P
As you can see "dinning_store" (The parameter) we are receiving it as "(?P
"cucumberautocomplete.customParameters": [
{
"parameter":"(?P
But I need to use the regex because all my framework parameters are established like that, so that's why I was trying with the following regex:
"cucumberautocomplete.customParameters": [ { "parameter":/(\?P<\w+>.+)/, "value":"([^\"])" } ]
But the redirection does not work for me.
Please ? @alexkrechik
Describe the bug Given I use a regex When using Cucumberautocomplete.customParameters Then the regex isn't recognized And when navigating over a Step with parameters, the Step definition is not found.
To Reproduce I have this step defined: @step('I add parking to cart in "(?P\<store>.+)"')
When using: "cucumberautocomplete.customParameters": [ { "parameter":"(?P\<store>.+)", "value":"([^\"]*)" } ] The single step that uses that specific parameter allows me to navigate to the step.
But, when using: "cucumberautocomplete.customParameters": [ { "parameter":"(\?P\<store>.+)(\?P\<store>.+)", "value":"([^\"])" } ] "cucumberautocomplete.customParameters": [ { "parameter":\/\(\?P\<\w+>\.\+\)\/, "value":"([^\"])" } ] The step does not appear. I need this for a huge project and I need to use the Regex option.
Expected behavior The regex should work
Cucumberautocomplete part of VSCode settings: "cucumberautocomplete.strictGherkinCompletion": false, "cucumberautocomplete.stepsInvariants": false, "cucumberautocomplete.gherkinDefinitionPart": "(Given|When|Then|Step)"