É aceitável escrever um teste “Dado quando então quando então” em Gherkin?
É aceitável escrever um teste "Dado quando então quando então" em Gherkin? Um exemplo da vida real é o seguinte: 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".
Eu sei que funciona usando behat, então analisar isso não é um problema. Eu só estou tentando escrever testes melhores. Eu poderia escrever no primeiro entãoAnd the Registration Wizard should be filled out with data
mas isso não parece específico o suficiente ...
Sugestões?