use-and
Require And instead of repeating the previous step keyword.
| Category | Recommended | Safe autofix | Default options |
|---|---|---|---|
| formatting | no | yes | none |
Reports and safely replaces a step keyword that repeats the previous one with And. * counts as And.
Configuration
json
{ "rules": { "use-and": "error" } }Triggered by
text
Given a cart
Given a coupon