I am trying to implement a BDD step which can be use if the step is referring to singular or plural ex: Then I should see the name "John" is displayed but also I want to use the same step if I have more then one name Then I should see the names "John, George" are displayed
In java you can do this when you implement the step like this: @Step("Then I should see the name? (regex) (:?is|are) displayed")
?- is for the plural and(:? | ) is when you want to replace a word
In feature file when you type (names or name; is or are) it points to the same step
Is there a way to do this in squish?