Skip to content

If a Given step already exists, that starts with the same text, the new step isn't recognised. #269

@monsoon53

Description

@monsoon53

👓 What did you see?

"Given I start a test" step already exists in step file, I then add a new test starting with "Given I start a test with TestId 1" - this is not recognised as being a new step, and therefore no option to generate the new step is presented. If I then delete some characters so the Given step is "Given I start a tes" then it is recognised as being a new step.

✅ What did you expect to see?

"Given I start a test with TestId 1" should be recognised as being a new step regardless of whether a step already exists with the text "Given I start a test" at the start.

📦 Which tool/library version are you using?

Cucumber for VSCode 1.10.0
Reqnroll.xUnit 2.2.1

🔬 How could we reproduce it?

Create a test with a Given step "Given I start a test" and define the step in a step class, then add a new test starting with "Given I start a test with TestId 1" - and see if this is recognised as being a new step. Then delete some characters so the Given step is "Given I start a tes" and observe that it is recognised as being a new step.

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions