Closed RemiBardon closed 2 months ago
Could you add support for alternatives (/)?
/
According to cucumber/cucumber-expressions:
Alternative text Sometimes you want to relax your language, to make it flow better. For example: I have {int} cucumber(s) in my belly/stomach This would match either of those texts: I have 1 cucumber in my belly I have 1 cucumber in my stomach I have 42 cucumbers in my stomach I have 42 cucumbers in my belly Alternative text only works when there is no whitespace between the alternative parts.
Sometimes you want to relax your language, to make it flow better. For example:
I have {int} cucumber(s) in my belly/stomach
This would match either of those texts:
I have 1 cucumber in my belly I have 1 cucumber in my stomach I have 42 cucumbers in my stomach I have 42 cucumbers in my belly
Alternative text only works when there is no whitespace between the alternative parts.
My bad I had misunderstood the docs, I thought I could use / in feature files…
Could you add support for alternatives (
/
)?According to cucumber/cucumber-expressions: