Open RP-julietesilva opened 4 weeks ago
Describe the bug A step with only one parameter redirects correctly, but when I add a second parameter, the step cannot be found.
To Reproduce Steps to reproduce the behavior:
When the user recharges a "monthly" transport card for "Bus"
When('the user recharges a {string} transport card for {string}', async (creditType: string, cardType: string) => { // Step logic here });
When the user recharges a "monthly" transport card for Bus
When('the user recharges a {string} transport card for Bus', async (creditType: string) => { // Step logic here });
then the redirection works correctly.
Expected behavior The step should be found with two or more parameters.
Screenshots
Cucumberautocomplete part of VSCode settings:
{ "cucumberautocomplete.steps": ["e2e/scenarios/step_definitions/*.ts"], "cucumberautocomplete.syncfeatures": "e2e/scenarios/features/*.feature", "cucumberautocomplete.strictGherkinCompletion": false, "cucumberautocomplete.stepsInvariants": true, "cucumberautocomplete.pureTextSteps": true }
Step definition: If applicable, add example of step definition:
Gherkin step line If applicable, add step line from gherkin file When the user recharges a "monthly" transport card for "Bus"
Describe the bug A step with only one parameter redirects correctly, but when I add a second parameter, the step cannot be found.
To Reproduce Steps to reproduce the behavior:
When the user recharges a "monthly" transport card for "Bus"
When the user recharges a "monthly" transport card for Bus
Step:then the redirection works correctly.
Expected behavior The step should be found with two or more parameters.
Screenshots
Cucumberautocomplete part of VSCode settings:
Step definition: If applicable, add example of step definition:
Gherkin step line If applicable, add step line from gherkin file
When the user recharges a "monthly" transport card for "Bus"