Answer the question
In order to leave comments, you need to log in
Why doesn't the regex work in the cucumber step group?
Good afternoon.
For some reason in IDEA the regular expression in the cucumber step does not work - (available | not available). Individually, each of the expressions work, but in a group they do not want to. The problem is the space, if one of the expressions in the group contains a space, then the regular expression does not work. If it is in a group
, then it does not find it.
If
it finds it separately
, everything works in regex101 https://regex101.com/r/96SGD7/1 But it is in the cucumber step, no!
@Then (value = "^(.+) > check that the collection element \"(.+)\" at number (\\d+) is in the state (available|not available)(?: editable|)$" , timeout = defaultStepTimeout)
Expected results:
Then Issues_UpdatingFields > check that the collection element "Status Field" at number 2 is in the state not editable
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question