2019-02-28 15:59:00 +03:00
|
|
|
@apache
|
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 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
|
|
|
|
|
2018-07-21 14:05:34 +03:00
|
|
|
Scenario: try to log in as disabled user
|
|
|
|
Given I visit the Home page
|
|
|
|
When I log in with user disabledUser and password 123456acb
|
|
|
|
Then I see that the current page is the Login page
|
|
|
|
And I see that the disabled user message is shown
|
|
|
|
|
2017-04-04 18:20:19 +03:00
|
|
|
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
|
2018-02-27 20:48:14 +03:00
|
|
|
And I click the New user button
|
|
|
|
And I see that the new user form is shown
|
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
|
2019-03-05 16:23:08 +03:00
|
|
|
# Then I see that the current page is the Files app
|
2017-04-04 18:20:19 +03:00
|
|
|
|
|
|
|
Scenario: log out
|
|
|
|
Given I am logged in
|
|
|
|
When I log out
|
|
|
|
Then I see that the current page is the Login page
|