¿Es aceptable escribir una prueba de "Dado cuándo, entonces, cuándo" en Gherkin?
¿Es aceptable escribir una prueba "Dado cuándo, entonces, cuándo" en Gherkin? Un ejemplo de la vida real es el siguiente 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".
Sé que funciona utilizando behat, por lo que analizarlo no es un problema. Solo estoy tratando de escribir mejores pruebas. Podría escribir en el primero entoncesAnd the Registration Wizard should be filled out with data
pero eso no parece lo suficientemente específico ...
Sugerencias?