Czy dopuszczalne jest napisanie testu „Biorąc pod uwagę, kiedy to wtedy” w Gherkin?
Czy dopuszczalne jest napisanie testu „Biorąc pod uwagę wtedy, gdy to wtedy” w Gherkin? Prawdziwy przykład jest następujący: wszystkie AllPlayers.com
Scenario: Successfully register a user
Given I am on homepage
And I am not logged into an account
When I follow "create a new account"
And I fill in "First Name" with "Bobby"
And I fill in "Last Name" with "Bricks"
And I fill in "E-mail" with "[email protected]"
And I select "Jun" from "Birthday Month"
And I select "22" from "Birthday Day"
And I select "1985" form "Birthday Year"
And I select "Male" from "Gender"
And I fill in "Password" with "123testing"
And I fill in "Confirm Password" with "123testing"
And I solve the captcha math problem
And I click "Create new account"
Then I should see "the user dashboard"
And I should see the Registration Wizard
When I push "Proceed to next step"
Then the "First Name" field should contain "Bobby"
And the "Last Name" field should contain "Bricks".
Wiem, że działa przy użyciu behat, więc parsowanie nie stanowi problemu. Próbuję tylko napisać lepsze testy. Wtedy mógłbym pisać w pierwszymAnd the Registration Wizard should be filled out with data
ale to nie wydaje się wystarczająco szczegółowe ...
Propozycje?