mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 02:06:10 +01:00
add cucumber scenarios for new preferences
This commit is contained in:
parent
555311b681
commit
40a7cc2d3a
9 changed files with 70 additions and 11 deletions
|
|
@ -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)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue