menu_navigation.feature 11 KB
Newer Older
1
@javascript @core @core_view @core_portfolio @menu
2
3
4
5
6
7
8
9
Feature: Checking the correct menu items are available for each user
In order to make sure the correct menu items are available
As every user
So users can access features in Mahara.

Background:
Given the following "institutions" exist:
     | name | displayname | registerallowed | registerconfirm |
10
     | instone | Institution One | ON | OFF |
11
12
13

Given the following "users" exist:
     | username | password | email | firstname | lastname | institution | authname | role |
Gregor Anzelj's avatar
Gregor Anzelj committed
14
15
16
17
     | UserA | Kupuh1pa! | UserA@example.org | Angela | User | mahara | internal | member |
     | UserB | Kupuh1pa! | UserB@example.org  | Bob | Staff | mahara | internal |  staff  |
     | UserC | Kupuh1pa! | UserC@example.org | Cecilia | Staff | instone | internal | staff  |
     | AdminA | Kupuh1pa! | AdminA@example.org  | Angela | Admin | instone | internal | admin  |
18
19

Scenario: Checking menu items are available as a student (Bug 1467368)
Gregor Anzelj's avatar
Gregor Anzelj committed
20
 Given I log in as "UserA" with password "Kupuh1pa!"
21
 # Checking the main menu navigation headings
22
 When I click on "Show main menu"
23
 And I wait "1" seconds
24
 And I follow "Dashboard"
25
26
 Then I should not see "Administration" in the "Administration menu" property
 And I should not see "Site information" in the "Administration menu" property
27
 And I click on "Show main menu"
28
29
30
31
32
33
34
35
36
37
38
 And I should see "Create" in the "Main menu" property
 And I should see "Engage" in the "Main menu" property
 And I should see "Manage" in the "Main menu" property
 # Checking the sub navigation in Create
 When I follow "Create"
 Then I should see "Pages and collections" in the "Create sub-menu" property
 And I should see "Files" in the "Create sub-menu" property
 And I should see "Journals" in the "Create sub-menu" property
 And I should see "Résumé" in the "Create sub-menu" property
 And I should see "Plans" in the "Create sub-menu" property
 And I should see "Notes" in the "Create sub-menu" property
39
40
41
42
 # Checking the sub navigation in Share
 When I follow "Share"
 And I should see "Shared by me" in the "Share sub-menu" property
 And I should see "Shared with me" in the "Share sub-menu" property
43
44
45
46
47
48
 # Checking the sub navigation in Engage
 When I follow "Engage"
 Then I should see "My groups" in the "Engage sub-menu" property
 And I should see "Find groups" in the "Engage sub-menu" property
 And I should see "My friends" in the "Engage sub-menu" property
 And I should see "Find people" in the "Engage sub-menu" property
49
 And I should see "Discussion topics" in the "Engage sub-menu" property
50
51
52
53
54
55
 And I should see "Institution membership" in the "Engage sub-menu" property

 # Checking the sub navigation in Manage
 When I follow "Manage"
 And I should see "Export" in the "Manage sub-menu" property
 And I should see "Import" in the "Manage sub-menu" property
56
57

Scenario: Checking menu items are available as site staff (Bug 1467368)
Gregor Anzelj's avatar
Gregor Anzelj committed
58
 Given I log in as "UserB" with password "Kupuh1pa!"
59
 Then I should not see "Administration" in the "Main menu" property
60
 # The one major difference a site staff has is site info link that leads to other links
61
 And I click on "Show administration menu"
62
 And I wait "1" seconds
63
 And I follow "User search"
64
 And I click on "Show administration menu"
65
 Then I follow "Reports"
66
67

Scenario: Checking menu items are available as Admin User (Bug 1467368)
Gregor Anzelj's avatar
Gregor Anzelj committed
68
 Given I log in as "admin" with password "Kupuh1pa!"
69
 # Checking the sub navigation in Administration
70
 And I click on "Show administration menu"
71
 And I wait "1" seconds
72
73
74
75
76
77
 Then I should see "Admin home" in the "Administration menu" property
 And I should see "Configure site" in the "Administration menu" property
 And I should see "Users" in the "Administration menu" property
 And I should see "Groups" in the "Administration menu" property
 And I should see "Institutions" in the "Administration menu" property
 And I should see "Extensions" in the "Administration menu" property
78
79
 And I should see "Web services" in the "Administration menu" property
 # Checking the sub navigation in Admin home
80
 When I press "Show menu for Admin home"
81
82
 Then I should see "Overview" in the "Admin home sub-menu" property
 And I should see "Register" in the "Admin home sub-menu" property
83
 # Checking the sub navigation in Configure site
84
 When I press "Show menu for Configure site"
85
86
87
 Then I should see "Site options" in the "Configure site sub-menu" property
 And I should see "Static pages" in the "Configure site sub-menu" property
 And I should see "Menus" in the "Configure site sub-menu" property
88
 And I should see "Legal" in the "Configure site sub-menu" property
89
90
91
 And I should see "Networking" in the "Configure site sub-menu" property
 And I should see "Licenses" in the "Configure site sub-menu" property
 And I should see "Pages and collections" in the "Configure site sub-menu" property
92
 And I should see "Journals" in the "Configure site sub-menu" property
93
94
95
 And I should see "Share" in the "Configure site sub-menu" property
 And I should see "Files" in the "Configure site sub-menu" property
 And I should see "Cookie Consent" in the "Configure site sub-menu" property
96
 # Checking the sub navigation in Users
97
 When I press "Show menu for Users"
98
99
100
101
102
103
104
 Then I should see "User search" in the "Users sub-menu" property
 And I should see "Suspended and expired users" in the "Users sub-menu" property
 And I should see "Site staff" in the "Users sub-menu" property
 And I should see "Site administrators" in the "Users sub-menu" property
 And I should see "Export queue" in the "Users sub-menu" property
 And I should see "Add user" in the "Users sub-menu" property
 And I should see "Add users by CSV" in the "Users sub-menu" property
105
 # Checking the sub navigation in Groups
106
107
108
109
110
111
 When I press "Show menu for Groups" in the "Administration menu" property
 Then I should see "Administer groups" in the "Admin Groups sub-menu" property
 And I should see "Group categories" in the "Admin Groups sub-menu" property
 And I should see "Archived submissions" in the "Admin Groups sub-menu" property
 And I should see "Add groups by CSV" in the "Admin Groups sub-menu" property
 And I should see "Update group members by CSV" in the "Admin Groups sub-menu" property
112
 # Checking the sub administration in Institutions
113
 When I press "Show menu for Institutions"
114
115
 Then I should see "Settings" in the "Institutions sub-menu" property
 And I should see "Static pages" in the "Institutions sub-menu" property
116
 And I should see "Legal" in the "Institutions sub-menu" property
117
118
119
120
121
122
 And I should see "Members" in the "Institutions sub-menu" property
 And I should see "Staff" in the "Institutions sub-menu" property
 And I should see "Administrators" in the "Institutions sub-menu" property
 And I should see "Admin notifications" in the "Institutions sub-menu" property
 And I should see "Profile completion" in the "Institutions sub-menu" property
 And I should see "Pages and collections" in the "Institutions sub-menu" property
123
 And I should see "Journals" in the "Institutions sub-menu" property
124
125
126
 And I should see "Share" in the "Institutions sub-menu" property
 And I should see "Files" in the "Institutions sub-menu" property
 And I should see "Pending registrations" in the "Institutions sub-menu" property
127
 # Checking Reports menu
128
 And I should see "Reports"
129
 # Checking the sub navigation in Extensions
130
 When I press "Show menu for Extensions"
131
132
133
134
 Then I should see "Plugin administration" in the "Extensions sub-menu" property
 And I should see "HTML filters" in the "Extensions sub-menu" property
 And I should see "Allowed iframe sources" in the "Extensions sub-menu" property
 And I should see "Clean URLs" in the "Extensions sub-menu" property
135
136
137
138
139
140
141
142
143
 And I should see "SmartEvidence" in the "Extensions sub-menu" property
 # Checking the sub navigation in Web services
 When I press "Web services"
 Then I should see "Configuration" in the "Web services sub-menu" property
 And I should see "Application connections" in the "Web services sub-menu" property
 And I should see "Connection manager" in the "Web services sub-menu" property
 And I should see "External apps" in the "Web services sub-menu" property
 And I should see "Logs" in the "Web services sub-menu" property
 And I should see "Test client" in the "Web services sub-menu" property
144
145

Scenario: Checking menu items are available as Institution Administrator (Bug 1467368)
Gregor Anzelj's avatar
Gregor Anzelj committed
146
 Given I log in as "AdminA" with password "Kupuh1pa!"
147
 # checking the sub navigation in Administration
148
 And I click on "Show administration menu"
149
150
 And I should not see "Configure site" in the "Administration menu" property
 And I should not see "Extensions" in the "Administration menu" property
151
 # Checking the sub navigation in Users
152
 And I press "Show menu for Users"
153
154
155
156
157
158
159
 Then I should not see "Site staff" in the "Users sub-menu" property
 And I should not see "Site administrators" in the "Users sub-menu" property
 And I should see "User search" in the "Users sub-menu" property
 And I should see "Suspended and expired users" in the "Users sub-menu" property
 And I should see "Export queue" in the "Users sub-menu" property
 And I should see "Add user" in the "Users sub-menu" property
 And I should see "Add users by CSV" in the "Users sub-menu" property
160
 # Checking the sub navigation in Groups
161
162
163
164
165
166
 And I press "Show menu for Groups" in the "Administration menu" property
 Then I should not see "Administer groups" in the "Admin Groups sub-menu" property
 And I should not see "Group categories" in the "Admin Groups sub-menu" property
 And I should see "Archived submissions" in the "Admin Groups sub-menu" property
 And I should see "Add groups by CSV" in the "Admin Groups sub-menu" property
 And I should see "Update group members by CSV" in the "Admin Groups sub-menu" property
167
 # Checking the sub navigation in Institutions
168
 And I press "Show menu for Institutions"
169
 Then I should see "Profile completion" in the "Institutions sub-menu" property
170
171
 And I should see "Settings" in the "Institutions sub-menu" property
 And I should see "Static pages" in the "Institutions sub-menu" property
172
 And I should see "Legal" in the "Institutions sub-menu" property
173
174
175
176
177
178
179
 And I should see "Members" in the "Institutions sub-menu" property
 And I should see "Staff" in the "Institutions sub-menu" property
 And I should see "Administrators" in the "Institutions sub-menu" property
 And I should see "Admin notifications" in the "Institutions sub-menu" property
 And I should see "Pages and collections" in the "Institutions sub-menu" property
 And I should see "Share" in the "Institutions sub-menu" property
 And I should see "Files" in the "Institutions sub-menu" property
180
 And I scroll to the base of id "navadmin"
181
 And I should see "Pending registrations" in the "Institutions sub-menu" property
182
 # Checking Reports menu
183
 And I should see "Reports"
184

185
186
187
188
 #Checking the user menu navigation headings
 Scenario: Checking User menu items
 Given I log in as "UserA" with password "Kupuh1pa!"
 And I click on the "User menu" property
189
190
 Then I should see "Profile"
 And I should see "Profile pictures"
191
192
 And I should see "Settings"
 When I press "Show menu for Settings"
193
 Then I should see "Preferences"
194
195
196
 And I should see "Legal"
 And I should see "Notifications"
 And I should see "Logout"