keywords-in-logical-order
Allows the user to maintain the wording order by using the scenario keywords, following the Given, When, Then sequence.
Configuration
| Name | Type | Description | Default |
|---|---|---|---|
detectMissingKeywords | boolean | Whether to ignore the lack of some keyword that violates the structure. | false |
Examples
Don't detect missing keywords
Enable rule, without reporting missing keywords (Default behaviour).
{
"keywords-in-logical-order": [
"error",
{
"detectMissingKeywords": false
}
]
}
Detect missing keywords
Enable rule, reporting missing keywords.
{
"keywords-in-logical-order": [
"error",
{
"detectMissingKeywords": true
}
]
}