features/engine/visitor_signs_up.feature in clearance-0.10.3.2 vs features/engine/visitor_signs_up.feature in clearance-0.10.4
- old
+ new
@@ -2,20 +2,22 @@
In order to get access to protected sections of the site
As a visitor
I want to sign up
- Scenario: Visitor signs up with invalid data
+ Background:
When I go to the sign up page
- And I fill in "Email" with "invalidemail"
+ Then I should see an email field
+
+ Scenario: Visitor signs up with invalid data
+ When I fill in "Email" with "invalidemail"
And I fill in "Password" with "password"
And I fill in "Confirm password" with ""
And I press "Sign up"
Then I should see error messages
Scenario: Visitor signs up with valid data
- When I go to the sign up page
- And I fill in "Email" with "email@person.com"
+ When I fill in "Email" with "email@person.com"
And I fill in "Password" with "password"
And I fill in "Confirm password" with "password"
And I press "Sign up"
Then I should see "signed up"