I often see Cucumber features written like this:
Given I a have an account with email: "firstname.lastname@example.org" and password: "password" When I go to the log in page And I fill in "Email" with "email@example.com" And I fill in "Password" with "password" And I press "Log in" Then I should see "Logged in successfully." And I should not see "Log in"
It works and does the job but I feel that it isn’t enough. It’s fragile in several ways.
Read the rest of this entry »