Ist es akzeptabel, in Gherkin einen „Given When Then When Then“ -Test zu schreiben?
Ist es akzeptabel, einen "Given When Then When Then" -Test in Gherkin zu schreiben? Ein reales Beispiel ist wie folgt: 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".
Ich weiß, dass es mit Behat funktioniert, also ist das Parsen kein Problem. Ich versuche nur, bessere Tests zu schreiben. Ich könnte dann erstmal schreibenAnd the Registration Wizard should be filled out with data
aber das scheint nicht spezifisch genug zu sein ...
Vorschläge?