| Línea 52... |
Línea 52... |
| 52 |
And the following should not exist in the "user-grades" table:
|
52 |
And the following should not exist in the "user-grades" table:
|
| 53 |
| -1- |
|
53 |
| -1- |
|
| 54 |
| Teacher 1 |
|
54 |
| Teacher 1 |
|
| 55 |
When I set the field "Search users" to "Turtle"
|
55 |
When I set the field "Search users" to "Turtle"
|
| 56 |
And I wait until "View all results (1)" "option_role" exists
|
56 |
And I wait until "View all results (1)" "option_role" exists
|
| 57 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
|
57 |
And I confirm "Turtle Manatee" exists in the "Search users" search combo box
|
| 58 |
And I confirm "User Example" in "user" search within the gradebook widget does not exist
|
58 |
And I confirm "User Example" does not exist in the "Search users" search combo box
|
| 59 |
And I click on "Turtle Manatee" "list_item"
|
59 |
And I click on "Turtle Manatee" "list_item"
|
| 60 |
# Business case: This will trigger a page reload and can not dynamically update the table.
|
60 |
# Business case: This will trigger a page reload and can not dynamically update the table.
|
| 61 |
And I wait until the page is ready
|
61 |
And I wait until the page is ready
|
| 62 |
Then the following should exist in the "user-grades" table:
|
62 |
Then the following should exist in the "user-grades" table:
|
| 63 |
| -1- |
|
63 |
| -1- |
|
| Línea 74... |
Línea 74... |
| 74 |
And I click on "Clear search input" "button" in the ".user-search" "css_element"
|
74 |
And I click on "Clear search input" "button" in the ".user-search" "css_element"
|
| 75 |
And "View all results (1)" "option_role" should not be visible
|
75 |
And "View all results (1)" "option_role" should not be visible
|
| Línea 76... |
Línea 76... |
| 76 |
|
76 |
|
| 77 |
Scenario: A teacher can search the grader report to find specified users
|
77 |
Scenario: A teacher can search the grader report to find specified users
|
| 78 |
# Case: Standard search.
|
78 |
# Case: Standard search.
|
| 79 |
Given I click on "Dummy" in the "user" search widget
|
79 |
Given I click on "Dummy" in the "Search users" search combo box
|
| 80 |
And the following should exist in the "user-grades" table:
|
80 |
And the following should exist in the "user-grades" table:
|
| 81 |
| -1- |
|
81 |
| -1- |
|
| 82 |
| Dummy User |
|
82 |
| Dummy User |
|
| 83 |
And the following should not exist in the "user-grades" table:
|
83 |
And the following should not exist in the "user-grades" table:
|
| Línea 104... |
Línea 104... |
| 104 |
| Turtle Manatee |
|
104 |
| Turtle Manatee |
|
| Línea 105... |
Línea 105... |
| 105 |
|
105 |
|
| 106 |
# Case: Multiple users found and select only one result.
|
106 |
# Case: Multiple users found and select only one result.
|
| 107 |
Then I set the field "Search users" to "User"
|
107 |
Then I set the field "Search users" to "User"
|
| 108 |
And I wait until "View all results (3)" "option_role" exists
|
108 |
And I wait until "View all results (3)" "option_role" exists
|
| 109 |
And I confirm "Dummy User" in "user" search within the gradebook widget exists
|
109 |
And I confirm "Dummy User" exists in the "Search users" search combo box
|
| 110 |
And I confirm "User Example" in "user" search within the gradebook widget exists
|
110 |
And I confirm "User Example" exists in the "Search users" search combo box
|
| 111 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
111 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 112 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget does not exist
|
112 |
And I confirm "Turtle Manatee" does not exist in the "Search users" search combo box
|
| 113 |
# Check if the matched field names (by lines) includes some identifiable info to help differentiate similar users.
|
113 |
# Check if the matched field names (by lines) includes some identifiable info to help differentiate similar users.
|
| 114 |
And I confirm "User (student2@example.com)" in "user" search within the gradebook widget exists
|
114 |
And I confirm "User (student2@example.com)" exists in the "Search users" search combo box
|
| 115 |
And I confirm "User (student3@example.com)" in "user" search within the gradebook widget exists
|
115 |
And I confirm "User (student3@example.com)" exists in the "Search users" search combo box
|
| 116 |
And I confirm "User (student4@example.com)" in "user" search within the gradebook widget exists
|
116 |
And I confirm "User (student4@example.com)" exists in the "Search users" search combo box
|
| 117 |
And I click on "Dummy User" "list_item"
|
117 |
And I click on "Dummy User" "list_item"
|
| 118 |
And I wait until the page is ready
|
118 |
And I wait until the page is ready
|
| 119 |
And the following should exist in the "user-grades" table:
|
119 |
And the following should exist in the "user-grades" table:
|
| 120 |
| -1- |
|
120 |
| -1- |
|
| Línea 154... |
Línea 154... |
| 154 |
| User Example |
|
154 |
| User Example |
|
| 155 |
| User Test |
|
155 |
| User Test |
|
| 156 |
| Dummy User |
|
156 |
| Dummy User |
|
| Línea 157... |
Línea 157... |
| 157 |
|
157 |
|
| 158 |
Scenario: A teacher can quickly tell that a search is active on the current table
|
158 |
Scenario: A teacher can quickly tell that a search is active on the current table
|
| 159 |
When I click on "Turtle" in the "user" search widget
|
159 |
When I click on "Turtle" in the "Search users" search combo box
|
| 160 |
# The search input should contain the name of the user we have selected, so that it is clear that the result pertains to a specific user.
|
160 |
# The search input should contain the name of the user we have selected, so that it is clear that the result pertains to a specific user.
|
| 161 |
Then the field "Search users" matches value "Turtle Manatee"
|
161 |
Then the field "Search users" matches value "Turtle Manatee"
|
| 162 |
# Test if we can then further retain the turtle result set and further filter from there.
|
162 |
# Test if we can then further retain the turtle result set and further filter from there.
|
| 163 |
And I set the field "Search users" to "Turtle plagiarism"
|
163 |
And I set the field "Search users" to "Turtle plagiarism"
|
| Línea 169... |
Línea 169... |
| 169 |
And I wait until "View all results (1)" "option_role" exists
|
169 |
And I wait until "View all results (1)" "option_role" exists
|
| 170 |
And "Turtle Manatee" "list_item" should exist
|
170 |
And "Turtle Manatee" "list_item" should exist
|
| 171 |
And I set the field "Search users" to "@example.com"
|
171 |
And I set the field "Search users" to "@example.com"
|
| 172 |
And I wait until "View all results (5)" "option_role" exists
|
172 |
And I wait until "View all results (5)" "option_role" exists
|
| 173 |
# Note: All learners match this email & showing emails is current default.
|
173 |
# Note: All learners match this email & showing emails is current default.
|
| 174 |
And I confirm "Dummy User" in "user" search within the gradebook widget exists
|
174 |
And I confirm "Dummy User" exists in the "Search users" search combo box
|
| 175 |
And I confirm "User Example" in "user" search within the gradebook widget exists
|
175 |
And I confirm "User Example" exists in the "Search users" search combo box
|
| 176 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
176 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 177 |
And I confirm "Student 1" in "user" search within the gradebook widget exists
|
177 |
And I confirm "Student 1" exists in the "Search users" search combo box
|
| 178 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
|
178 |
And I confirm "Turtle Manatee" exists in the "Search users" search combo box
|
| Línea 179... |
Línea 179... |
| 179 |
|
179 |
|
| 180 |
# Search on the country field.
|
180 |
# Search on the country field.
|
| 181 |
When I set the field "Search users" to "JP"
|
181 |
When I set the field "Search users" to "JP"
|
| 182 |
And I wait until "Turtle Manatee" "list_item" does not exist
|
182 |
And I wait until "Turtle Manatee" "list_item" does not exist
|
| 183 |
And I confirm "Dummy User" in "user" search within the gradebook widget exists
|
183 |
And I confirm "Dummy User" exists in the "Search users" search combo box
|
| Línea 184... |
Línea 184... |
| 184 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
184 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 185 |
|
185 |
|
| 186 |
# Search on the city field.
|
186 |
# Search on the city field.
|
| 187 |
And I set the field "Search users" to "Hanoi"
|
187 |
And I set the field "Search users" to "Hanoi"
|
| Línea 188... |
Línea 188... |
| 188 |
And I wait until "User Test" "list_item" does not exist
|
188 |
And I wait until "User Test" "list_item" does not exist
|
| 189 |
Then I confirm "Student 1" in "user" search within the gradebook widget exists
|
189 |
Then I confirm "Student 1" exists in the "Search users" search combo box
|
| 190 |
|
190 |
|
| 191 |
# Search on the institution field.
|
191 |
# Search on the institution field.
|
| 192 |
And I set the field "Search users" to "ABCD"
|
192 |
And I set the field "Search users" to "ABCD"
|
| 193 |
And I wait until "Dummy User" "list_item" exists
|
193 |
And I wait until "Dummy User" "list_item" exists
|
| 194 |
And I confirm "User Example" in "user" search within the gradebook widget exists
|
194 |
And I confirm "User Example" exists in the "Search users" search combo box
|
| Línea 195... |
Línea 195... |
| 195 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
195 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 196 |
And I confirm "Student 1" in "user" search within the gradebook widget exists
|
196 |
And I confirm "Student 1" exists in the "Search users" search combo box
|
| 197 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
|
197 |
And I confirm "Turtle Manatee" exists in the "Search users" search combo box
|
| 198 |
|
198 |
|
| 199 |
# Search on the department field.
|
199 |
# Search on the department field.
|
| Línea 200... |
Línea 200... |
| 200 |
And I set the field "Search users" to "ABC3"
|
200 |
And I set the field "Search users" to "ABC3"
|
| 201 |
And I wait until "User Example" "list_item" does not exist
|
201 |
And I wait until "User Example" "list_item" does not exist
|
| 202 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
202 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 203 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
|
203 |
And I confirm "Turtle Manatee" exists in the "Search users" search combo box
|
| Línea 204... |
Línea 204... |
| 204 |
|
204 |
|
| 205 |
# Search on the phone1 field.
|
205 |
# Search on the phone1 field.
|
| 206 |
And I set the field "Search users" to "4365899871"
|
206 |
And I set the field "Search users" to "4365899871"
|
| 207 |
And I wait until "User Test" "list_item" does not exist
|
207 |
And I wait until "User Test" "list_item" does not exist
|
| Línea 208... |
Línea 208... |
| 208 |
And I confirm "Dummy User" in "user" search within the gradebook widget exists
|
208 |
And I confirm "Dummy User" exists in the "Search users" search combo box
|
| 209 |
|
209 |
|
| 210 |
# Search on the phone2 field.
|
210 |
# Search on the phone2 field.
|
| 211 |
And I set the field "Search users" to "2149871323"
|
211 |
And I set the field "Search users" to "2149871323"
|
| 212 |
And I wait until "Dummy User" "list_item" does not exist
|
212 |
And I wait until "Dummy User" "list_item" does not exist
|
| 213 |
And I confirm "User Test" in "user" search within the gradebook widget exists
|
213 |
And I confirm "User Test" exists in the "Search users" search combo box
|
| 214 |
|
214 |
|
| 215 |
# Search on the institution field then press enter to show the record set.
|
215 |
# Search on the institution field then press enter to show the record set.
|
| 216 |
And I set the field "Search users" to "ABC"
|
216 |
And I set the field "Search users" to "ABC"
|
| 217 |
And I wait until "Turtle Manatee" "list_item" exists
|
217 |
And I wait until "Turtle Manatee" "list_item" exists
|
| 218 |
And I confirm "Dummy User" in "user" search within the gradebook widget exists
|
218 |
And I confirm "Dummy User" exists in the "Search users" search combo box
|
| 219 |
And I confirm "User Example" in "user" search within the gradebook widget exists
|
219 |
And I confirm "User Example" exists in the "Search users" search combo box
|
| Línea 290... |
Línea 290... |
| 290 |
And I wait until "Turtle Manatee" "option_role" exists
|
290 |
And I wait until "Turtle Manatee" "option_role" exists
|
| 291 |
And I press the tab key
|
291 |
And I press the tab key
|
| 292 |
And the focused element is "Clear search input" "button"
|
292 |
And the focused element is "Clear search input" "button"
|
| 293 |
And I press the enter key
|
293 |
And I press the enter key
|
| 294 |
And I wait until the page is ready
|
294 |
And I wait until the page is ready
|
| 295 |
And I confirm "Turtle Manatee" in "user" search within the gradebook widget does not exist
|
295 |
And I confirm "Turtle Manatee" does not exist in the "Search users" search combo box
|
| Línea 296... |
Línea 296... |
| 296 |
|
296 |
|
| 297 |
Scenario: Once a teacher searches, it'll apply the currently set filters and inform the teacher as such
|
297 |
Scenario: Once a teacher searches, it'll apply the currently set filters and inform the teacher as such
|
| 298 |
# Set up a basic filtering case.
|
298 |
# Set up a basic filtering case.
|
| 299 |
Given I click on "Filter by name" "combobox"
|
299 |
Given I click on "Filter by name" "combobox"
|
| 300 |
And I select "U" in the "First name" "core_grades > initials bar"
|
300 |
And I select "U" in the "First name" "core_course > initials bar"
|
| 301 |
And I select "E" in the "Last name" "core_grades > initials bar"
|
301 |
And I select "E" in the "Last name" "core_course > initials bar"
|
| 302 |
And I press "Apply"
|
302 |
And I press "Apply"
|
| 303 |
And I wait until the page is ready
|
303 |
And I wait until the page is ready
|
| 304 |
And the following should exist in the "user-grades" table:
|
304 |
And the following should exist in the "user-grades" table:
|
| 305 |
| -1- |
|
305 |
| -1- |
|
| Línea 312... |
Línea 312... |
| 312 |
| Dummy User |
|
312 |
| Dummy User |
|
| 313 |
| Turtle Manatee |
|
313 |
| Turtle Manatee |
|
| Línea 314... |
Línea 314... |
| 314 |
|
314 |
|
| 315 |
# Begin the search checking if we are adhering the filters.
|
315 |
# Begin the search checking if we are adhering the filters.
|
| 316 |
When I set the field "Search users" to "Turtle"
|
316 |
When I set the field "Search users" to "Turtle"
|
| Línea 317... |
Línea 317... |
| 317 |
Then I confirm "Turtle Manatee" in "user" search within the gradebook widget does not exist
|
317 |
Then I confirm "Turtle Manatee" does not exist in the "Search users" search combo box
|
| 318 |
|
318 |
|
| 319 |
Scenario: A teacher can reset the search and filters all at once
|
319 |
Scenario: A teacher can reset the search and filters all at once
|
| 320 |
Given I set the field "Search users" to "Turtle"
|
320 |
Given I set the field "Search users" to "Turtle"
|
| 321 |
And I click on "Turtle Manatee" "option_role"
|
321 |
And I click on "Turtle Manatee" "option_role"
|
| 322 |
And I wait until the page is ready
|
322 |
And I wait until the page is ready
|
| 323 |
And the following should exist in the "user-grades" table:
|
323 |
And the following should exist in the "user-grades" table:
|
| 324 |
| -1- |
|
324 |
| -1- |
|
| 325 |
| Turtle Manatee |
|
325 |
| Turtle Manatee |
|
| 326 |
And I click on "Filter by name" "combobox"
|
326 |
And I click on "Filter by name" "combobox"
|
| 327 |
And I select "T" in the "First name" "core_grades > initials bar"
|
327 |
And I select "T" in the "First name" "core_course > initials bar"
|
| 328 |
And I select "M" in the "Last name" "core_grades > initials bar"
|
328 |
And I select "M" in the "Last name" "core_course > initials bar"
|
| 329 |
And the following should exist in the "user-grades" table:
|
329 |
And the following should exist in the "user-grades" table:
|
| 330 |
| -1- |
|
330 |
| -1- |
|
| 331 |
| Turtle Manatee |
|
331 |
| Turtle Manatee |
|
| 332 |
And I click on "Default group" in the "group" search widget
|
332 |
And I click on "Default group" in the "Search groups" search combo box
|
| 333 |
And the following should exist in the "user-grades" table:
|
333 |
And the following should exist in the "user-grades" table:
|
| 334 |
| -1- |
|
334 |
| -1- |
|
| 335 |
| Turtle Manatee |
|
335 |
| Turtle Manatee |
|
| Línea 351... |
Línea 351... |
| 351 |
And I reload the page
|
351 |
And I reload the page
|
| 352 |
And the field "perpage" matches value "20"
|
352 |
And the field "perpage" matches value "20"
|
| 353 |
When I set the field "Search users" to "42"
|
353 |
When I set the field "Search users" to "42"
|
| 354 |
# One of the users' phone numbers also matches.
|
354 |
# One of the users' phone numbers also matches.
|
| 355 |
And I wait until "View all results (2)" "option_role" exists
|
355 |
And I wait until "View all results (2)" "option_role" exists
|
| 356 |
Then I confirm "Student s42" in "user" search within the gradebook widget exists
|
356 |
Then I confirm "Student s42" exists in the "Search users" search combo box
|
| Línea 357... |
Línea 357... |
| 357 |
|
357 |
|
| 358 |
Scenario: As a teacher I save grades using search and pagination
|
358 |
Scenario: As a teacher I save grades using search and pagination
|
| 359 |
Given "42" "users" exist with the following data:
|
359 |
Given "42" "users" exist with the following data:
|
| 360 |
| username | students[count] |
|
360 |
| username | students[count] |
|