Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in error message for use of alternation inside an optional #252

Closed
kieran-ryan opened this issue Dec 3, 2023 · 0 comments · Fixed by #253
Closed

Typo in error message for use of alternation inside an optional #252

kieran-ryan opened this issue Dec 3, 2023 · 0 comments · Fixed by #253
Assignees

Comments

@kieran-ryan
Copy link
Sponsor Member

Repeated 'the' within the error message for use of an alternation inside an optional.

👓 What did you see?

Through an issue raised on the Visual Studio Code extension (cucumber/vscode#142), it was observed that the error message for use of an alternation inside an optional includes a repeated 'the' in its second line:

An alternation can not be used inside an optional.
You can use '\/' to escape the the '/'

✅ What did you expect to see?

Single 'the':

An alternation can not be used inside an optional.
You can use '\/' to escape the '/'

📦 Which tool/library version are you using?

Cucumber Expressions: 16.1.2
Cucumber Visual Studio Code extension: 1.8.0

🔬 How could we reproduce it?

  1. Install the Visual Studio Code extension
  2. Create a step definition with an alternation inside an optional
import { When } from 'cypress-cucumber-preprocessor/steps'
const { wait } = cy

When('entro no detalhe d(a/o) {string}', () => {
  wait('@apisRequests')
})
  1. Check the logs of the Cucumber Language Server in the Output window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant