Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 36... Línea 36...
36
    Given I should see "Search users"
36
    Given I should see "Search users"
37
    # Confirm the search is currently inactive and results are unfiltered.
37
    # Confirm the search is currently inactive and results are unfiltered.
38
    And I should see "Search for a user to view their report"
38
    And I should see "Search for a user to view their report"
39
    When I set the field "Search users" to "Turtle"
39
    When I set the field "Search users" to "Turtle"
40
    And "View all results (5)" "option_role" should exist
40
    And "View all results (5)" "option_role" should exist
41
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
41
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
42
    And I confirm "User Example" in "user" search within the gradebook widget does not exist
42
    And I confirm "User Example" does not exist in the "Search users" search combo box
43
    And I click on "Turtle Manatee" "list_item"
43
    And I click on "Turtle Manatee" "list_item"
44
    # Business case: This will trigger a page reload and can not dynamically update the table.
44
    # Business case: This will trigger a page reload and can not dynamically update the table.
45
    And I wait until the page is ready
45
    And I wait until the page is ready
46
    And "Turtle Manatee" "heading" should exist
46
    And "Turtle Manatee" "heading" should exist
47
    And "Teacher 1" "heading" should not exist
47
    And "Teacher 1" "heading" should not exist
Línea 54... Línea 54...
54
    And I click on "Clear search input" "button" in the ".user-search" "css_element"
54
    And I click on "Clear search input" "button" in the ".user-search" "css_element"
55
    And "View all results (5)" "option_role" should not be visible
55
    And "View all results (5)" "option_role" should not be visible
Línea 56... Línea 56...
56
 
56
 
57
  Scenario: A teacher can search the user report to find specified users
57
  Scenario: A teacher can search the user report to find specified users
58
    # Case: Standard search.
58
    # Case: Standard search.
59
    Given I click on "Dummy" in the "user" search widget
59
    Given I click on "Dummy" in the "Search users" search combo box
60
    And "Dummy User" "heading" should exist
60
    And "Dummy User" "heading" should exist
61
    And "Teacher 1" "heading" should not exist
61
    And "Teacher 1" "heading" should not exist
62
    And "Student 1" "heading" should not exist
62
    And "Student 1" "heading" should not exist
63
    And "User Example" "heading" should not exist
63
    And "User Example" "heading" should not exist
Línea 75... Línea 75...
75
    And "User Test" "heading" should not exist
75
    And "User Test" "heading" should not exist
76
    And "Turtle Manatee" "heading" should not exist
76
    And "Turtle Manatee" "heading" should not exist
77
    # Case: Multiple users found and select only one result.
77
    # Case: Multiple users found and select only one result.
78
    Then I set the field "Search users" to "User"
78
    Then I set the field "Search users" to "User"
79
    And "View all results (5)" "option_role" should exist
79
    And "View all results (5)" "option_role" should exist
80
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
80
    And I confirm "Dummy User" exists in the "Search users" search combo box
81
    And I confirm "User Example" in "user" search within the gradebook widget exists
81
    And I confirm "User Example" exists in the "Search users" search combo box
82
    And I confirm "User Test" in "user" search within the gradebook widget exists
82
    And I confirm "User Test" exists in the "Search users" search combo box
83
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget does not exist
83
    And I confirm "Turtle Manatee" does not exist in the "Search users" search combo box
84
    # Check if the matched field names (by lines) includes some identifiable info to help differentiate similar users.
84
    # Check if the matched field names (by lines) includes some identifiable info to help differentiate similar users.
85
    And I confirm "User (student2@example.com)" in "user" search within the gradebook widget exists
85
    And I confirm "User (student2@example.com)" exists in the "Search users" search combo box
86
    And I confirm "User (student3@example.com)" in "user" search within the gradebook widget exists
86
    And I confirm "User (student3@example.com)" exists in the "Search users" search combo box
87
    And I confirm "User (student4@example.com)" in "user" search within the gradebook widget exists
87
    And I confirm "User (student4@example.com)" exists in the "Search users" search combo box
88
    And I click on "Dummy User" "list_item"
88
    And I click on "Dummy User" "list_item"
89
    And I wait until the page is ready
89
    And I wait until the page is ready
90
    And "Dummy User" "heading" should exist
90
    And "Dummy User" "heading" should exist
91
    And "Teacher 1" "heading" should not exist
91
    And "Teacher 1" "heading" should not exist
92
    And "Student 1" "heading" should not exist
92
    And "Student 1" "heading" should not exist
Línea 119... Línea 119...
119
    And I am on the "Course 2" "grades > User report > View" page
119
    And I am on the "Course 2" "grades > User report > View" page
120
    And I set the field "Search users" to "a"
120
    And I set the field "Search users" to "a"
121
    And I should see "No results for \"a\""
121
    And I should see "No results for \"a\""
Línea 122... Línea 122...
122
 
122
 
123
  Scenario: A teacher can quickly tell that a search is active on the current table
123
  Scenario: A teacher can quickly tell that a search is active on the current table
124
    When I click on "Turtle" in the "user" search widget
124
    When I click on "Turtle" in the "Search users" search combo box
125
    # 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.
125
    # 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.
126
    Then the field "Search users" matches value "Turtle Manatee"
126
    Then the field "Search users" matches value "Turtle Manatee"
127
    And I wait until "View all results (5)" "link" does not exist
127
    And I wait until "View all results (5)" "link" does not exist
128
    # Test if we can then further retain the turtle result set and further filter from there.
128
    # Test if we can then further retain the turtle result set and further filter from there.
Línea 135... Línea 135...
135
    And "View all results (5)" "option_role" should exist
135
    And "View all results (5)" "option_role" should exist
136
    And "Turtle Manatee" "list_item" should exist
136
    And "Turtle Manatee" "list_item" should exist
137
    And I set the field "Search users" to "@example.com"
137
    And I set the field "Search users" to "@example.com"
138
    And "View all results (5)" "option_role" should exist
138
    And "View all results (5)" "option_role" should exist
139
    # Note: All learners match this email & showing emails is current default.
139
    # Note: All learners match this email & showing emails is current default.
140
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
140
    And I confirm "Dummy User" exists in the "Search users" search combo box
141
    And I confirm "User Example" in "user" search within the gradebook widget exists
141
    And I confirm "User Example" exists in the "Search users" search combo box
142
    And I confirm "User Test" in "user" search within the gradebook widget exists
142
    And I confirm "User Test" exists in the "Search users" search combo box
143
    And I confirm "Student 1" in "user" search within the gradebook widget exists
143
    And I confirm "Student 1" exists in the "Search users" search combo box
144
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
144
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
Línea 145... Línea 145...
145
 
145
 
146
    # Search on the country field.
146
    # Search on the country field.
147
    When I set the field "Search users" to "JP"
147
    When I set the field "Search users" to "JP"
148
    And "View all results (5)" "option_role" should exist
148
    And "View all results (5)" "option_role" should exist
149
    And I wait until "Turtle Manatee" "list_item" does not exist
149
    And I wait until "Turtle Manatee" "list_item" does not exist
150
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
150
    And I confirm "Dummy User" exists in the "Search users" search combo box
Línea 151... Línea 151...
151
    And I confirm "User Test" in "user" search within the gradebook widget exists
151
    And I confirm "User Test" exists in the "Search users" search combo box
152
 
152
 
153
    # Search on the city field.
153
    # Search on the city field.
154
    And I set the field "Search users" to "Hanoi"
154
    And I set the field "Search users" to "Hanoi"
Línea 155... Línea 155...
155
    And I wait until "User Test" "list_item" does not exist
155
    And I wait until "User Test" "list_item" does not exist
156
    Then I confirm "Student 1" in "user" search within the gradebook widget exists
156
    Then I confirm "Student 1" exists in the "Search users" search combo box
157
 
157
 
158
    # Search on the institution field.
158
    # Search on the institution field.
159
    And I set the field "Search users" to "ABCD"
159
    And I set the field "Search users" to "ABCD"
160
    And "Dummy User" "list_item" should exist
160
    And "Dummy User" "list_item" should exist
161
    And I confirm "User Example" in "user" search within the gradebook widget exists
161
    And I confirm "User Example" exists in the "Search users" search combo box
Línea 162... Línea 162...
162
    And I confirm "User Test" in "user" search within the gradebook widget exists
162
    And I confirm "User Test" exists in the "Search users" search combo box
163
    And I confirm "Student 1" in "user" search within the gradebook widget exists
163
    And I confirm "Student 1" exists in the "Search users" search combo box
164
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
164
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
165
 
165
 
166
      # Search on the department field.
166
      # Search on the department field.
Línea 167... Línea 167...
167
    And I set the field "Search users" to "ABC3"
167
    And I set the field "Search users" to "ABC3"
168
    And I wait until "User Example" "list_item" does not exist
168
    And I wait until "User Example" "list_item" does not exist
169
    And I confirm "User Test" in "user" search within the gradebook widget exists
169
    And I confirm "User Test" exists in the "Search users" search combo box
170
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
170
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
Línea 171... Línea 171...
171
 
171
 
172
    # Search on the phone1 field.
172
    # Search on the phone1 field.
173
    And I set the field "Search users" to "4365899871"
173
    And I set the field "Search users" to "4365899871"
174
    And I wait until "User Test" "list_item" does not exist
174
    And I wait until "User Test" "list_item" does not exist
Línea 175... Línea 175...
175
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
175
    And I confirm "Dummy User" exists in the "Search users" search combo box
176
 
176
 
177
    # Search on the phone2 field.
177
    # Search on the phone2 field.
178
    And I set the field "Search users" to "2149871323"
178
    And I set the field "Search users" to "2149871323"
179
    And I wait until "Dummy User" "list_item" does not exist
179
    And I wait until "Dummy User" "list_item" does not exist
180
    And I confirm "User Test" in "user" search within the gradebook widget exists
180
    And I confirm "User Test" exists in the "Search users" search combo box
181
 
181
 
182
    # Search on the institution field then press enter to show the record set.
182
    # Search on the institution field then press enter to show the record set.
183
    And I set the field "Search users" to "ABC"
183
    And I set the field "Search users" to "ABC"
184
    And "Turtle Manatee" "list_item" should exist
184
    And "Turtle Manatee" "list_item" should exist
185
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
185
    And I confirm "Dummy User" exists in the "Search users" search combo box
186
    And I confirm "User Example" in "user" search within the gradebook widget exists
186
    And I confirm "User Example" exists in the "Search users" search combo box
Línea 203... Línea 203...
203
    And the following config values are set as admin:
203
    And the following config values are set as admin:
204
      | hiddenuserfields | email |
204
      | hiddenuserfields | email |
205
    And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
205
    And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
206
    When I set the field "Search users" to "User"
206
    When I set the field "Search users" to "User"
207
    And "View all results (5)" "option_role" should exist
207
    And "View all results (5)" "option_role" should exist
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
    And I confirm "User Example" in "user" search within the gradebook widget exists
209
    And I confirm "User Example" exists in the "Search users" search combo box
210
    And I confirm "User Test" in "user" search within the gradebook widget exists
210
    And I confirm "User Test" exists in the "Search users" search combo box
211
    # Email is not shown in results.
211
    # Email is not shown in results.
212
    And I confirm "User" in "user" search within the gradebook widget exists
212
    And I confirm "User" exists in the "Search users" search combo box
213
    And I confirm "example.com" in "user" search within the gradebook widget does not exist
213
    And I confirm "example.com" does not exist in the "Search users" search combo box
214
    # Email is not searchable.
214
    # Email is not searchable.
215
    And I set the field "Search users" to "student5@example.com"
215
    And I set the field "Search users" to "student5@example.com"
216
    And "View all results (5)" "option_role" should not exist
216
    And "View all results (5)" "option_role" should not exist
217
    And I confirm "No results for \"student5@example.com\"" in "user" search within the gradebook widget exists
217
    And I confirm "No results for \"student5@example.com\"" exists in the "Search users" search combo box
Línea 218... Línea 218...
218
 
218
 
219
  @accessibility
219
  @accessibility
220
  Scenario: A teacher can set focus and search using the input are with a keyboard
220
  Scenario: A teacher can set focus and search using the input are with a keyboard
221
    Given I set the field "Search users" to "ABC"
221
    Given I set the field "Search users" to "ABC"