Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When running default tests for my project Behat throws an error because of ambiguity between two step definitions.
The Lightning Core declared step definition for "When I visit..." EntityContext.behat.inc:81
uses Gherkin tokens for the optional "a or an" string which conflicts with a custom step definition @When I visit :type :title
defined, to be used in the following way When I visit article "Test article"
. Because article begins with "a" Behat considers it a match for the Lightning Core step as well as the custom step.
My suggested solution is to replace the token with regexp.
Comment | File | Size | Author |
---|---|---|---|
#2 | lightning-core_when-I-visit-2955092-2.patch | 672 bytes | GRO |
Comments
Comment #2
GRO CreditAttribution: GRO commentedComment #3
GRO CreditAttribution: GRO commentedComment #4
phenaproximaThis looks good to me. I'll open a PR for Lightning Core and merge it if tests pass.
Comment #7
phenaproximaCommitted to 8.x-2.x and cherry-picked to 8.x-1.x. Thank you!