2017-04-04 18:20:19 +03:00
|
|
|
Feature: login
|
|
|
|
|
|
|
|
Scenario: log in with valid user and password
|
|
|
|
Given I visit the Home page
|
2017-04-21 15:47:44 +03:00
|
|
|
When I log in with user user0 and password 123456acb
|
2017-04-04 18:20:19 +03:00
|
|
|
Then I see that the current page is the Files app
|
|
|
|
|
|
|
|
Scenario: try to log in with valid user and invalid password
|
|
|
|
Given I visit the Home page
|
|
|
|
When I log in with user user0 and password 654321
|
|
|
|
Then I see that the current page is the Login page
|
|
|
|
And I see that a wrong password message is shown
|
|
|
|
|
|
|
|
Scenario: log in with valid user and invalid password once fixed by admin
|
|
|
|
Given I act as John
|
|
|
|
And I can not log in with user user0 and password 654231
|
|
|
|
When I act as Jane
|
|
|
|
And I am logged in as the admin
|
|
|
|
And I open the User settings
|
|
|
|
And I set the password for user0 to 654321
|
|
|
|
And I see that the "Password successfully changed" notification is shown
|
|
|
|
And I act as John
|
|
|
|
And I log in with user user0 and password 654321
|
|
|
|
Then I see that the current page is the Files app
|
|
|
|
|
|
|
|
Scenario: try to log in with invalid user
|
|
|
|
Given I visit the Home page
|
2017-04-21 15:47:44 +03:00
|
|
|
When I log in with user unknownUser and password 123456acb
|
2017-04-04 18:20:19 +03:00
|
|
|
Then I see that the current page is the Login page
|
|
|
|
And I see that a wrong password message is shown
|
|
|
|
|
|
|
|
Scenario: log in with invalid user once fixed by admin
|
|
|
|
Given I act as John
|
2017-04-21 15:47:44 +03:00
|
|
|
And I can not log in with user unknownUser and password 123456acb
|
2017-04-04 18:20:19 +03:00
|
|
|
When I act as Jane
|
|
|
|
And I am logged in as the admin
|
|
|
|
And I open the User settings
|
2017-04-21 15:47:44 +03:00
|
|
|
And I create user unknownUser with password 123456acb
|
2017-04-04 18:20:19 +03:00
|
|
|
And I see that the list of users contains the user unknownUser
|
|
|
|
And I act as John
|
2017-04-21 15:47:44 +03:00
|
|
|
And I log in with user unknownUser and password 123456acb
|
2017-04-04 18:20:19 +03:00
|
|
|
Then I see that the current page is the Files app
|
|
|
|
|
|
|
|
Scenario: log out
|
|
|
|
Given I am logged in
|
|
|
|
When I log out
|
|
|
|
Then I see that the current page is the Login page
|