You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cucumber should recognise double-quoted strings out of the box, in a consistent way across implementations.
Expected Behavior
Consider the undefined step:
Given my "blue" coat is zipped
Cucumber should recognise "blue" as a match of a string parameter type and suggest a snippet with the following Cucumber Expression:
my {string} coat is zipped
When the step defintion is implemented, Cucumber should pass the part between the double quotes to the step definition.
Current Behavior
Cucumber.js already registers a default stringInDoubleQuotes parameter type which does all of this.
Possible Solution
Define and register this default parameter type in cucumber-expressions so Cucumber implementations don't have to do it.
Context & Motivation
The parameter type name stringInDoubleQuotes is a bit long, and won't read well in step definitions. Using string instead would make it more readable/intuitive and it would standardise the behaviour in the cucumber-expression library, avoiding inconsistent behaviour on different cucumber implementations.
The text was updated successfully, but these errors were encountered:
Summary
Cucumber should recognise double-quoted strings out of the box, in a consistent way across implementations.
Expected Behavior
Consider the undefined step:
Cucumber should recognise
"blue"
as a match of astring
parameter type and suggest a snippet with the following Cucumber Expression:When the step defintion is implemented, Cucumber should pass the part between the double quotes to the step definition.
Current Behavior
Cucumber.js already registers a default
stringInDoubleQuotes
parameter type which does all of this.Possible Solution
Define and register this default parameter type in cucumber-expressions so Cucumber implementations don't have to do it.
Context & Motivation
The parameter type name
stringInDoubleQuotes
is a bit long, and won't read well in step definitions. Usingstring
instead would make it more readable/intuitive and it would standardise the behaviour in the cucumber-expression library, avoiding inconsistent behaviour on different cucumber implementations.The text was updated successfully, but these errors were encountered: