cucumber / cucumber/vscode

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

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
:bug: bug
Dominant language
TypeScript
Stars
88
Forks
33
PR merge metrics
No merged PRs in 30d

Description

### 👓 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.