cucumber icon indicating copy to clipboard operation
cucumber copied to clipboard

Parsing error when starting a scenario with an And

Open cdmistman opened this issue 1 year ago • 1 comments

in the openCypher TCK there exists a feature which contains scenarios that start with And steps. These And steps follow the Background Given to provide more complete scenarios.

AFAICT, the Gherkin reference doesn't say And steps must succeed a Given, When, or Then step, but cucumber-rs throws parsing errors when this happens. Perhaps to remediate this, cucumber-rs should allow for And steps at the beginning of a Scenario which are implied to extend the Background steps?

cdmistman avatar Jul 06 '23 21:07 cdmistman

@cdmistman makes sense.

tyranron avatar Jul 07 '23 09:07 tyranron