blob: 047d7398d6cf7a86f5e972f0dc31a1cc0f524687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
@apache
Feature: login
Scenario: log in with valid user and password
Given I visit the Home page
When I log in with user user0 and password 123456acb
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
When I log in with user unknownUser and password 123456acb
Then I see that the current page is the Login page
And I see that a wrong password message is shown
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
Scenario: log in with invalid user once fixed by admin
Given I act as John
And I can not log in with user unknownUser and password 123456acb
When I act as Jane
And I am logged in as the admin
And I open the User settings
And I click the New user button
And I see that the new user form is shown
And I create user unknownUser with password 123456acb
And I see that the list of users contains the user unknownUser
And I act as John
And I log in with user unknownUser and password 123456acb
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
|