Open osmolyar opened 4 years ago
Same issue here.
Will be fixed with new feature file parser.
In
and And
are valid Gherkin keywords in some language.
If you use the lower case variant in
and and
it would solve it.
Or find a text line where these words are not the first word of the line.
Describe the bug Sentences in the Feature description section starting with "In" and "And" are flagged with warning saying they are not steps, e.g.
Feature: Login As a system administrator In order to test login access control to the management portal I want to log in with valid and invalid credentials with default authentication options And log out of the page
The 2nd and 4th line are flagged saying "Was unable to find step for". Actual steps that are defined are recognized fine.
Expected behavior Expect no warning on Feature description lines that are not part of any Scenario or Scenario outline. Expect "In" not to be treated as a step keyword.
Screenshots If applicable, add screenshots to help explain your problem.
Cucumberautocomplete part of VSCode settings:
or same thing with more complete settings, as
Step definition: If applicable, add example of step definition: