gherkin-lint-php icon indicating copy to clipboard operation
gherkin-lint-php copied to clipboard

Missing when not picked up

Open dantleech opened this issue 3 years ago • 1 comments

        Given I place an order for reminder code "ABC1001"
        And I am on practice "1"
        And I am user "[email protected]"
        And I send an approval request for reminder code "ABC1001"
        Then the state of the order is "approved"
        And the action "approve" was made by "[email protected]"

dantleech avatar Jul 05 '22 20:07 dantleech

Unrelated, but I have a preference to not embed these strings just to check they're still the same, I prefer the form

Given I place an order for reminder code
And I send an approval request for that reminder code
Then the state of the order is "approved"
And the action "approve" was made by me

The key part is "that" here, I keep a reference to stuff created in previous steps in a sort of clipboard container, allowing me to say

set('reminder code', $object);
get('reminder code');

in my contexts.

dkarlovi avatar Jul 31 '24 14:07 dkarlovi