Describe the bug
When using strict validation settings, a step which uses an or operator with forward slash / and a {string} argument, is not being matched to its definition when correctly written.
To Reproduce
Steps to reproduce the behaviour:
- Clone my playwright-bdd-example
- Open it on vscode
- Enable the extension
Expected behavior
The step being recognised.
Screenshots
Cucumberautocomplete part of VSCode settings:
{
"cucumberautocomplete.steps": ["features/steps/*.{ts,js}"],
"cucumberautocomplete.strictGherkinCompletion": true,
"cucumberautocomplete.strictGherkinValidation": true
}
Step definition:
Then('This step should/texts be matched with quote {string} with slash', async ({ page }) => {
await expect(page).toHaveURL(/.*playwright\.dev.*/);
});
Gherkin step line
Then This step should be matched with quote "some quote" with slash
Describe the bug
When using strict validation settings, a step which uses an or operator with forward slash
/and a{string}argument, is not being matched to its definition when correctly written.To Reproduce
Steps to reproduce the behaviour:
Expected behavior
The step being recognised.
Screenshots
Cucumberautocomplete part of VSCode settings:
Step definition:
Gherkin step line
Then This step should be matched with quote "some quote" with slash