Describe the bug
There are two bugs, pointing to similar issue
If gherkin step defined with step definition -> it can not go to correct step definition
Any steps which are not defined with step definition -> it is not highlighted as missing gherkin step definition
To Reproduce
Steps to reproduce the behaviour:
Define gherkin step with step definition using Python(in VS code), with having "Doc string" ends with gherkin word(GIVEN,WHEN,AND,THEN) -> This will cause above two bugs.
Expected behavior
Any python doc string ends with any word should not cause the bug
Screenshots
Bug1: This step is defined as a step definition but when clicked for go to definition -> it is going to the step definition which is having doc string ends with gherkin word (below screenshot)
Bug2: None of the steps are defined as a step definition, but it is not highlighting it as a un-defined step.
Step definition:
@when("ACC sees a new vehicle")
def step_impl(context):
"""
I want this to be when ACC radar sees a new vehicle ahead
This should be based on ACC vehicle ahead and when
"""
pass
Gherkin step line
Bug1: screenshot attached
Bug2: screenshot attached
Describe the bug There are two bugs, pointing to similar issue
To Reproduce Steps to reproduce the behaviour:
Expected behavior Any python doc string ends with any word should not cause the bug
Screenshots Bug1: This step is defined as a step definition but when clicked for go to definition -> it is going to the step definition which is having doc string ends with gherkin word (below screenshot)
Bug2: None of the steps are defined as a step definition, but it is not highlighting it as a un-defined step.
Step definition: @when("ACC sees a new vehicle") def step_impl(context): """ I want this to be when ACC radar sees a new vehicle ahead This should be based on ACC vehicle ahead and when """ pass
Gherkin step line Bug1: screenshot attached Bug2: screenshot attached