Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 194... Línea 194...
194
    And "User Test" "heading" should exist
194
    And "User Test" "heading" should exist
195
    And "Dummy User" "heading" should exist
195
    And "Dummy User" "heading" should exist
196
    And "Turtle Manatee" "heading" should exist
196
    And "Turtle Manatee" "heading" should exist
197
    And "Teacher 1" "heading" should not exist
197
    And "Teacher 1" "heading" should not exist
Línea -... Línea 198...
-
 
198
 
-
 
199
  Scenario: A teacher can only search for fields that he allowed to see
-
 
200
    Given the following "permission overrides" exist:
-
 
201
      | capability                         | permission | role             | contextlevel | reference |
-
 
202
      | moodle/course:viewhiddenuserfields | Prohibit   | editingteacher   | System       |           |
-
 
203
    And the following config values are set as admin:
-
 
204
      | hiddenuserfields | email |
-
 
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"
-
 
207
    And "View all results (5)" "option_role" should exist
-
 
208
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
-
 
209
    And I confirm "User Example" in "user" search within the gradebook widget exists
-
 
210
    And I confirm "User Test" in "user" search within the gradebook widget exists
-
 
211
    # Email is not shown in results.
-
 
212
    And I confirm "User" in "user" search within the gradebook widget exists
-
 
213
    And I confirm "example.com" in "user" search within the gradebook widget does not exist
-
 
214
    # Email is not searchable.
-
 
215
    And I set the field "Search users" to "student5@example.com"
-
 
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
198
 
218
 
199
  @accessibility
219
  @accessibility
200
  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
201
    Given I set the field "Search users" to "ABC"
221
    Given I set the field "Search users" to "ABC"
202
    # Basic tests for the page.
222
    # Basic tests for the page.