add cucumber scenarios for new preferences

This commit is contained in:
Reinier Balt 2011-08-18 12:48:59 +02:00
parent 555311b681
commit 40a7cc2d3a
9 changed files with 70 additions and 11 deletions

View file

@ -10,10 +10,33 @@ Feature: Manage preferences
And I have logged in as "testuser" with password "secret"
Scenario: I can change my password
Given this is a pending scenario
When I go to the preferences page
And I set the password and confirmation to "secret123"
When I log out of Tracks
And I go to the login page
And I submit the login form as user "testuser" with password "secret"
Then I should see "Login unsuccessful"
When I submit the login form as user "testuser" with password "secret123"
Then I should see "Login successful"
Scenario: I can leave password field empty and the password will not be changed
When I go to the preferences page
And I set the password and confirmation to ""
When I log out of Tracks
And I go to the login page
And I submit the login form as user "testuser" with password ""
Then I should see "Login unsuccessful"
When I submit the login form as user "testuser" with password "secret"
Then I should see "Login successful"
Scenario: The password and the confirmation need to be the same
When I go to the preferences page
And I set the password to "secret" and confirmation to "wrong"
Then I should see "Password doesn't match confirmation"
Scenario: I can generate a new token
Given this is a pending scenario
Scenario: I can edit preferences
Given this is a pending scenario
When I go to the preferences page
Then I should see "Logout (testuser)"
When I edit my last name to "Tester"
Then I should see "Logout (Tester)"