An option (or workaround) that ensures that step previews are always detected as Regex #351
RikvanSpreuwel
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Yes, this might help: https://docs.reqnroll.net/latest/guides/how-to-configure-cucumber-expression-behavior.html |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to globally ensure that all step definitions are always detected as regex for the preview in feature files? (without adding '$^' to every step definition).
Note: the forceRegexPlugin workaround described here does not fix this issue https://docs.reqnroll.net/latest/guides/how-to-configure-cucumber-expression-behavior.html
With preview I mean that when you type 'When' or 'Then' etc on a new line, you see all possible steps filtered, which are filtered based on what you type next. E.g. 'When button' presents this list of steps as possibilities in our project:

Several steps here are not correctly recognized as regex because they do not use certain patterns. An example of this is the step "the user clicks on '[string]' button for [string] '[string]'", which should be "the user clicks on '([^'])' button for (folder|program) '([^'])'".

See step definition:
The main issue with that step definitions are not recognized as regex in this case are as follows:
Beta Was this translation helpful? Give feedback.
All reactions