Skip to content

only-one-when ​

Allow at most one When step per Scenario.

CategoryRecommendedSafe autofixDefault options
structurenononone

Allows at most one explicit When step per Scenario. And after When does not count.

Configuration ​

json
{ "rules": { "only-one-when": "error" } }

Triggered by ​

text
When I pay
When I cancel

Released under the MIT License.