-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Bug report: An alternation can not be used inside an optional. #142
Comments
@nklowns, modifying your step definition from import { When } from 'cypress-cucumber-preprocessor/steps'
const { wait } = cy
When('entro no detalhe da/do {string}', () => {
wait('@apisRequests')
}) |
Thank you very much for raising @nklowns. This is expected behaviour of Cucumber Expressions; however arising from this issue, I have raised a pull request to improve the error message. If you have any feedback on it, please let us know. You can also raise a feature request to that repository if you would like support to be added for using alternations inside optionals. An alternation can not be used inside an optional
If you did not mean to use an alternation you can use '\\/' to escape the '/'. Otherwise rephrase your expression or consider using a regular expression instead.
If changing to the above doesn't meet your use case and you had a different intention, please advise and will see if an appropriate solution can be provided. |
👓 What did you see?
✅ What did you expect to see?
📦 Which tool/library version are you using?
Cucumber plugin: v1.7.0
VS code: 1.74.3
🔬 How could we reproduce it?
Steps to reproduce the behavior:
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: