blob: 94b08e8f6d94bfd9d1ac8d3396636b5142762124 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
@apache
Feature: header
Scenario: admin users can see admin-level items in the Settings menu
Given I am logged in as the admin
When I open the Settings menu
Then I see that the Settings menu is shown
And I see that the Settings menu has only 5 items
And I see that the "Settings" item in the Settings menu is shown
And I see that the "Apps" item in the Settings menu is shown
And I see that the "Users" item in the Settings menu is shown
And I see that the "Help" item in the Settings menu is shown
And I see that the "Log out" item in the Settings menu is shown
Scenario: normal users can see basic items in the Settings menu
Given I am logged in
When I open the Settings menu
Then I see that the Settings menu is shown
And I see that the Settings menu has only 3 items
And I see that the "Settings" item in the Settings menu is shown
And I see that the "Help" item in the Settings menu is shown
And I see that the "Log out" item in the Settings menu is shown
Scenario: other users are seen in the contacts menu
Given I am logged in as the admin
When I open the Contacts menu
Then I see that the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is shown
And I see that the contact "admin" in the Contacts menu is not shown
Scenario: users from other groups are not seen in the contacts menu when autocompletion is restricted within the same group
Given I am logged in as the admin
And I visit the settings page
And I open the "Sharing" section of the "Administration" group
And I enable restricting username autocompletion to groups
And I see that username autocompletion is restricted to groups
When I open the Contacts menu
Then I see that the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is not shown
And I see that the contact "admin" in the Contacts menu is not shown
Scenario: just added users are seen in the contacts menu
Given 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 user1 with password 123456acb
And I see that the list of users contains the user user1
When I open the Contacts menu
Then I see that the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is shown
And I see that the contact "user1" in the Contacts menu is shown
And I see that the contact "admin" in the Contacts menu is not shown
Scenario: search for other users in the contacts menu
Given 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 user1 with password 123456acb
And I see that the list of users contains the user user1
And I open the Contacts menu
And I see that the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is shown
And I see that the contact "user1" in the Contacts menu is shown
And I see that the Contacts menu search input is shown
When I search for the user "user0"
# First check that "user1" is no longer shown to ensure that the search was
# made; checking that "user0" is shown or that "admin" is not shown does not
# guarantee that (as they were already being shown and not being shown,
# respectively, before the search started).
Then I see that the contact "user1" in the Contacts menu is eventually not shown
And I see that the contact "user0" in the Contacts menu is shown
And I see that the contact "admin" in the Contacts menu is not shown
Scenario: search for unknown users in the contacts menu
Given I am logged in as the admin
And I open the Contacts menu
And I see that the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is shown
And I see that the Contacts menu search input is shown
When I search for the user "unknownuser"
Then I see that the no results message in the Contacts menu is shown
And I see that the contact "user0" in the Contacts menu is not shown
And I see that the contact "admin" in the Contacts menu is not shown
|