Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @core_course
2
Feature: Course category breadcrumbs navigation
3
  To navigate around the course category pages
4
  As an admin user
5
  I should see breadcrumbs
6
 
7
  Background:
8
    Given the following "blocks" exist:
9
      | blockname  | contextlevel | reference | defaultregion |
10
      | navigation | System       | 1         | side-post     |
11
    And the following "categories" exist:
12
      | name  | category | idnumber |
13
      | Cat 1 | 0        | CAT1     |
14
 
15
  Scenario: Admin user navigates to 'course category management' page
16
    Given I log in as "admin"
17
    And I navigate to "Courses > Manage courses and categories" in site administration
18
    When I follow "Cat 1"
19
    Then I should see "Courses" in the ".breadcrumb" "css_element"
20
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
21
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
22
    And I should see "Cat 1" in the ".page-context-header" "css_element"
23
    And I should see "Manage course categories and courses" in the "region-main" "region"
24
 
25
  Scenario: Admin user navigates to category 'view' page
26
    Given I log in as "admin"
27
    And I navigate to "Courses > Manage courses and categories" in site administration
28
    And I follow "Cat 1"
29
    When I click on "view" action for "Cat 1" in management category listing
30
    Then I should see "Courses" in the ".breadcrumb" "css_element"
31
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
32
    And I should see "Cat 1" in the ".page-context-header" "css_element"
33
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
34
 
35
  Scenario: Admin user navigates to 'add new course' page
36
    Given I log in as "admin"
37
    And I navigate to "Courses > Manage courses and categories" in site administration
38
    And I follow "Cat 1"
39
    When I click on "Create new course" "link"
40
    Then I should see "Courses" in the ".breadcrumb" "css_element"
41
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
42
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
43
    And I should see "Add a new course" in the ".breadcrumb" "css_element"
44
    And I should see "Cat 1" in the ".page-context-header" "css_element"
45
    And I should see "Add a new course" in the "region-main" "region"
46
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
47
 
48
  Scenario: Admin user navigates to 'add category' page
49
    Given I log in as "admin"
50
    And I navigate to "Courses > Manage courses and categories" in site administration
51
    And I follow "Cat 1"
52
    When I click on "Create new category" "link"
53
    Then I should see "Courses" in the ".breadcrumb" "css_element"
54
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
55
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
56
    And I should see "Add a category" in the ".breadcrumb" "css_element"
57
    And I should see "Cat 1" in the ".page-context-header" "css_element"
58
    And I should see "Add new category" in the "region-main" "region"
59
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
60
 
61
  Scenario: Admin user navigates to a subcategory 'management' page
62
    Given the following "categories" exist:
63
      | name     | category | idnumber |
64
      | Subcat 1 | CAT1     | SUBCAT1  |
65
    And I log in as "admin"
66
    And I navigate to "Courses > Manage courses and categories" in site administration
67
    And I follow "Cat 1"
68
    When I follow "Subcat 1"
69
    Then I should see "Courses" in the ".breadcrumb" "css_element"
70
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
71
    And I should see "Subcat 1" in the ".breadcrumb" "css_element"
72
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
73
    And I should see "Subcat 1" in the ".page-context-header" "css_element"
74
    And I should see "Manage course categories and courses" in the "region-main" "region"
75
 
76
  Scenario: Admin user navigates to a subcategory 'view' page
77
    Given the following "categories" exist:
78
      | name     | category | idnumber |
79
      | Subcat 1 | CAT1     | SUBCAT1  |
80
    And I log in as "admin"
81
    And I navigate to "Courses > Manage courses and categories" in site administration
82
    And I follow "Cat 1"
83
    And I follow "Subcat 1"
84
    When I click on "view" action for "Subcat 1" in management category listing
85
    Then I should see "Courses" in the ".breadcrumb" "css_element"
86
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
87
    And I should see "Subcat 1" in the ".breadcrumb" "css_element"
88
    And I should see "Subcat 1" in the ".page-context-header" "css_element"
89
    And I should see "Subcat 1" in the ".block_navigation .active_tree_node" "css_element"
90
 
91
  Scenario: Admin user navigates to 'add new course' page within a subcategory
92
    Given the following "categories" exist:
93
      | name     | category | idnumber |
94
      | Subcat 1 | CAT1     | SUBCAT1  |
95
    And I log in as "admin"
96
    And I navigate to "Courses > Manage courses and categories" in site administration
97
    And I follow "Cat 1"
98
    And I follow "Subcat 1"
99
    When I click on "Create new course" "link"
100
    Then I should see "Courses" in the ".breadcrumb" "css_element"
101
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
102
    And I should see "Subcat 1" in the ".breadcrumb" "css_element"
103
    And I should see "Manage courses and categories" in the ".breadcrumb" "css_element"
104
    And I should see "Add a new course" in the ".breadcrumb" "css_element"
105
    And I should see "Subcat 1" in the ".page-context-header" "css_element"
106
    And I should see "Add a new course" in the "region-main" "region"
107
    And I should see "Subcat 1" in the ".block_navigation .active_tree_node" "css_element"
108
 
109
  Scenario: Admin user navigates to category 'settings' page
110
    Given I log in as "admin"
111
    And I navigate to "Courses > Manage courses and categories" in site administration
112
    And I follow "Cat 1"
113
    When I navigate to "Settings" in current page administration
114
    Then I should see "Courses" in the ".breadcrumb" "css_element"
115
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
116
    And I should see "Settings" in the ".breadcrumb" "css_element"
117
    And I should see "Cat 1" in the ".page-context-header" "css_element"
118
    And I should see "Edit category settings" in the "region-main" "region"
119
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
120
 
121
  Scenario: Admin user navigates to category 'permissions' page
122
    Given I log in as "admin"
123
    And I navigate to "Courses > Manage courses and categories" in site administration
124
    And I follow "Cat 1"
125
    When I navigate to "Permissions" in current page administration
126
    Then I should see "Courses" in the ".breadcrumb" "css_element"
127
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
128
    And I should see "Permissions" in the ".breadcrumb" "css_element"
129
    And I should see "Cat 1" in the ".page-context-header" "css_element"
130
    And I should see "Permissions in Category: Cat 1" in the "region-main" "region"
131
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
132
 
133
  Scenario: Admin user navigates to category 'assign roles' page
134
    Given I log in as "admin"
135
    And I navigate to "Courses > Manage courses and categories" in site administration
136
    And I follow "Cat 1"
137
    And I navigate to "Permissions" in current page administration
138
    And I set the field "Participants tertiary navigation" to "Assign roles"
139
    Then I should see "Courses" in the ".breadcrumb" "css_element"
140
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
141
    And I should see "Assign roles" in the ".breadcrumb" "css_element"
142
    And I should see "Cat 1" in the ".page-context-header" "css_element"
143
    And I should see "Assign roles in Category: Cat 1" in the "region-main" "region"
144
 
145
  Scenario: Admin user navigates to category 'check permissions' page
146
    Given I log in as "admin"
147
    And I navigate to "Courses > Manage courses and categories" in site administration
148
    And I follow "Cat 1"
149
    And I navigate to "Permissions" in current page administration
150
    When I set the field "Participants tertiary navigation" to "Check permissions"
151
    Then I should see "Courses" in the ".breadcrumb" "css_element"
152
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
153
    And I should see "Check permissions" in the ".breadcrumb" "css_element"
154
    And I should see "Cat 1" in the ".page-context-header" "css_element"
155
    And I should see "Check permissions in Category: Cat 1" in the "region-main" "region"
156
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
157
 
158
  Scenario: Admin user navigates to category 'cohorts' page
159
    Given I log in as "admin"
160
    And I navigate to "Courses > Manage courses and categories" in site administration
161
    And I follow "Cat 1"
162
    When I navigate to "Cohorts" in current page administration
163
    Then I should see "Courses" in the ".breadcrumb" "css_element"
164
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
165
    And I should see "Cohorts" in the ".breadcrumb" "css_element"
166
    And I should see "Cat 1" in the ".page-context-header" "css_element"
167
    And I should see "Cohorts" in the "region-main" "region"
168
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
169
 
170
  Scenario: Admin user navigates to category 'add new cohort' page
171
    Given I log in as "admin"
172
    And I navigate to "Courses > Manage courses and categories" in site administration
173
    And I follow "Cat 1"
174
    And I navigate to "Cohorts" in current page administration
175
    When I follow "Add new cohort"
176
    Then I should see "Courses" in the ".breadcrumb" "css_element"
177
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
178
    And I should see "Cohorts" in the ".breadcrumb" "css_element"
179
    And I should see "Add new cohort" in the ".breadcrumb" "css_element"
180
    And I should see "Cat 1" in the ".page-context-header" "css_element"
181
    And I should see "Add new cohort" in the "region-main" "region"
182
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
183
 
184
  Scenario: Admin user navigates to category 'upload cohorts' page
185
    Given I log in as "admin"
186
    And I navigate to "Courses > Manage courses and categories" in site administration
187
    And I follow "Cat 1"
188
    And I navigate to "Cohorts" in current page administration
189
    When I follow "Upload cohorts"
190
    Then I should see "Courses" in the ".breadcrumb" "css_element"
191
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
192
    And I should see "Cohorts" in the ".breadcrumb" "css_element"
193
    And I should see "Upload cohorts" in the ".breadcrumb" "css_element"
194
    And I should see "Cat 1" in the ".page-context-header" "css_element"
195
    And I should see "Upload cohorts" in the "region-main" "region"
196
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
197
 
198
  Scenario: Admin user navigates to category 'filters' page
199
    Given I log in as "admin"
200
    And I navigate to "Courses > Manage courses and categories" in site administration
201
    And I follow "Cat 1"
202
    When I navigate to "Filters" in current page administration
203
    Then I should see "Courses" in the ".breadcrumb" "css_element"
204
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
205
    And I should see "Filters" in the ".breadcrumb" "css_element"
206
    And I should see "Cat 1" in the ".page-context-header" "css_element"
207
    And I should see "Filter settings in Category: Cat 1" in the "region-main" "region"
208
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
209
 
210
  Scenario: Admin user navigates to category 'restore course' page
211
    Given I log in as "admin"
212
    And I navigate to "Courses > Manage courses and categories" in site administration
213
    And I follow "Cat 1"
214
    When I navigate to "Restore course" in current page administration
215
    Then I should see "Courses" in the ".breadcrumb" "css_element"
216
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
217
    And I should see "Restore course" in the ".breadcrumb" "css_element"
218
    And I should see "Cat 1" in the ".page-context-header" "css_element"
219
    And I should see "Upload a backup file" in the "region-main" "region"
220
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
221
 
222
  Scenario: Admin user navigates to category Manage course backups page
223
    Given I log in as "admin"
224
    And I navigate to "Courses > Manage courses and categories" in site administration
225
    And I follow "Cat 1"
226
    And I navigate to "Restore course" in current page administration
227
    When I press "Manage course backups"
228
    Then I should see "Courses" in the ".breadcrumb" "css_element"
229
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
230
    And I should see "Restore course" in the ".breadcrumb" "css_element"
231
    And I should see "Manage course backups" in the ".breadcrumb" "css_element"
232
    And I should see "Cat 1" in the ".page-context-header" "css_element"
233
    And I should see "Manage course backups" in the "region-main" "region"
234
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"
235
 
236
  Scenario: Admin user navigates to category 'content bank' page
237
    Given I log in as "admin"
238
    And I navigate to "Courses > Manage courses and categories" in site administration
239
    And I follow "Cat 1"
240
    When I navigate to "Content bank" in current page administration
241
    Then I should see "Courses" in the ".breadcrumb" "css_element"
242
    And I should see "Cat 1" in the ".breadcrumb" "css_element"
243
    And I should see "Content bank" in the ".breadcrumb" "css_element"
244
    And I should see "Cat 1" in the ".page-context-header" "css_element"
245
    And I should see "Content bank" in the "region-main" "region"
246
    And I should see "Cat 1" in the ".block_navigation .active_tree_node" "css_element"