Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 35... Línea 35...
35
  Scenario: A teacher can view and trigger the user search
35
  Scenario: A teacher can view and trigger the user search
36
    # Check the placeholder text (no users are initially shown).
36
    # Check the placeholder text (no users are initially shown).
37
    Given I should see "Search users"
37
    Given I should see "Search users"
38
    And I should see "Search for a user to view all their grades"
38
    And I should see "Search for a user to view all their grades"
39
    When I set the field "Search users" to "Turtle"
39
    When I set the field "Search users" to "Turtle"
40
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
40
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
41
    And I confirm "User Example" in "user" search within the gradebook widget does not exist
41
    And I confirm "User Example" does not exist in the "Search users" search combo box
42
    And I click on "Turtle Manatee" "list_item"
42
    And I click on "Turtle Manatee" "list_item"
43
    # Business case: This will trigger a page reload and can not dynamically update the table.
43
    # Business case: This will trigger a page reload and can not dynamically update the table.
44
    And I wait until the page is ready
44
    And I wait until the page is ready
45
    And "Turtle Manatee" "heading" should exist
45
    And "Turtle Manatee" "heading" should exist
46
    And "Teacher 1" "heading" should not exist
46
    And "Teacher 1" "heading" should not exist
Línea 53... Línea 53...
53
    And I click on "Clear search input" "button" in the ".user-search" "css_element"
53
    And I click on "Clear search input" "button" in the ".user-search" "css_element"
54
    And "Turtle Manatee" "option_role" should not be visible
54
    And "Turtle Manatee" "option_role" should not be visible
Línea 55... Línea 55...
55
 
55
 
56
  Scenario: A teacher can search the single view report to find specified users
56
  Scenario: A teacher can search the single view report to find specified users
57
    # Case: Standard search.
57
    # Case: Standard search.
58
    Given I click on "Dummy" in the "user" search widget
58
    Given I click on "Dummy" in the "Search users" search combo box
59
    And "Dummy User" "heading" should exist
59
    And "Dummy User" "heading" should exist
60
    And "Teacher 1" "heading" should not exist
60
    And "Teacher 1" "heading" should not exist
61
    And "Student 1" "heading" should not exist
61
    And "Student 1" "heading" should not exist
62
    And "User Example" "heading" should not exist
62
    And "User Example" "heading" should not exist
Línea 75... Línea 75...
75
    And "Turtle Manatee" "heading" should not exist
75
    And "Turtle Manatee" "heading" should not exist
Línea 76... Línea 76...
76
 
76
 
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 I wait until "Dummy User" "option_role" exists
79
    And I wait until "Dummy User" "option_role" exists
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
Línea 99... Línea 99...
99
    And I click on "Users" "link" in the ".page-toggler" "css_element"
99
    And I click on "Users" "link" in the ".page-toggler" "css_element"
100
    And I set the field "Search users" to "a"
100
    And I set the field "Search users" to "a"
101
    And I wait until "No results for \"a\"" "text" exists
101
    And I wait until "No results for \"a\"" "text" exists
Línea 102... Línea 102...
102
 
102
 
103
  Scenario: A teacher can quickly tell that a search is active on the current table
103
  Scenario: A teacher can quickly tell that a search is active on the current table
104
    Given I click on "Turtle" in the "user" search widget
104
    Given I click on "Turtle" in the "Search users" search combo box
105
    And I wait until the page is ready
105
    And I wait until the page is ready
106
    # The search input remains in the field on reload this is in keeping with other search implementations.
106
    # The search input remains in the field on reload this is in keeping with other search implementations.
107
    When the field "Search users" matches value "Turtle Manatee"
107
    When the field "Search users" matches value "Turtle Manatee"
108
    # The users get preloaded for accessibility reasons.
108
    # The users get preloaded for accessibility reasons.
Línea 116... Línea 116...
116
    Given I set the field "Search users" to "student5@example.com"
116
    Given I set the field "Search users" to "student5@example.com"
117
    And I wait until "Turtle Manatee" "list_item" exists
117
    And I wait until "Turtle Manatee" "list_item" exists
118
    And I set the field "Search users" to "@example.com"
118
    And I set the field "Search users" to "@example.com"
119
    And I wait until "Dummy User" "list_item" exists
119
    And I wait until "Dummy User" "list_item" exists
120
    # Note: All learners match this email & showing emails is current default.
120
    # Note: All learners match this email & showing emails is current default.
121
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
121
    And I confirm "Dummy User" exists in the "Search users" search combo box
122
    And I confirm "User Example" in "user" search within the gradebook widget exists
122
    And I confirm "User Example" exists in the "Search users" search combo box
123
    And I confirm "User Test" in "user" search within the gradebook widget exists
123
    And I confirm "User Test" exists in the "Search users" search combo box
124
    And I confirm "Student 1" in "user" search within the gradebook widget exists
124
    And I confirm "Student 1" exists in the "Search users" search combo box
125
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
125
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
Línea 126... Línea 126...
126
 
126
 
127
    # Search on the country field.
127
    # Search on the country field.
128
    When I set the field "Search users" to "JP"
128
    When I set the field "Search users" to "JP"
129
    And I wait until "Dummy User" "list_item" exists
129
    And I wait until "Dummy User" "list_item" exists
130
    And I wait until "Turtle Manatee" "list_item" does not exist
130
    And I wait until "Turtle Manatee" "list_item" does not exist
131
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
131
    And I confirm "Dummy User" exists in the "Search users" search combo box
Línea 132... Línea 132...
132
    And I confirm "User Test" in "user" search within the gradebook widget exists
132
    And I confirm "User Test" exists in the "Search users" search combo box
133
 
133
 
134
    # Search on the city field.
134
    # Search on the city field.
135
    And I set the field "Search users" to "Hanoi"
135
    And I set the field "Search users" to "Hanoi"
Línea 136... Línea 136...
136
    And I wait until "User Test" "list_item" does not exist
136
    And I wait until "User Test" "list_item" does not exist
137
    Then I confirm "Student 1" in "user" search within the gradebook widget exists
137
    Then I confirm "Student 1" exists in the "Search users" search combo box
138
 
138
 
139
    # Search on the institution field.
139
    # Search on the institution field.
140
    And I set the field "Search users" to "ABCD"
140
    And I set the field "Search users" to "ABCD"
141
    And I wait until "Dummy User" "list_item" exists
141
    And I wait until "Dummy User" "list_item" exists
142
    And I confirm "User Example" in "user" search within the gradebook widget exists
142
    And I confirm "User Example" exists in the "Search users" search combo box
Línea 143... Línea 143...
143
    And I confirm "User Test" in "user" search within the gradebook widget exists
143
    And I confirm "User Test" exists in the "Search users" search combo box
144
    And I confirm "Student 1" in "user" search within the gradebook widget exists
144
    And I confirm "Student 1" exists in the "Search users" search combo box
145
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
145
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
146
 
146
 
147
      # Search on the department field.
147
      # Search on the department field.
Línea 148... Línea 148...
148
    And I set the field "Search users" to "ABC3"
148
    And I set the field "Search users" to "ABC3"
149
    And I wait until "User Example" "list_item" does not exist
149
    And I wait until "User Example" "list_item" does not exist
150
    And I confirm "User Test" in "user" search within the gradebook widget exists
150
    And I confirm "User Test" exists in the "Search users" search combo box
151
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget exists
151
    And I confirm "Turtle Manatee" exists in the "Search users" search combo box
Línea 152... Línea 152...
152
 
152
 
153
    # Search on the phone1 field.
153
    # Search on the phone1 field.
154
    And I set the field "Search users" to "4365899871"
154
    And I set the field "Search users" to "4365899871"
155
    And I wait until "User Test" "list_item" does not exist
155
    And I wait until "User Test" "list_item" does not exist
Línea 156... Línea 156...
156
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
156
    And I confirm "Dummy User" exists in the "Search users" search combo box
157
 
157
 
158
    # Search on the phone2 field.
158
    # Search on the phone2 field.
159
    And I set the field "Search users" to "2149871323"
159
    And I set the field "Search users" to "2149871323"
160
    And I wait until "Dummy User" "list_item" does not exist
160
    And I wait until "Dummy User" "list_item" does not exist
161
    And I confirm "User Test" in "user" search within the gradebook widget exists
161
    And I confirm "User Test" exists in the "Search users" search combo box
162
 
162
 
163
    # Search on the institution field then press enter to show the record set.
163
    # Search on the institution field then press enter to show the record set.
164
    And I set the field "Search users" to "ABC"
164
    And I set the field "Search users" to "ABC"
165
    And "Turtle Manatee" "list_item" should exist
165
    And "Turtle Manatee" "list_item" should exist
166
    And I confirm "Dummy User" in "user" search within the gradebook widget exists
166
    And I confirm "Dummy User" exists in the "Search users" search combo box
167
    And I confirm "User Example" in "user" search within the gradebook widget exists
167
    And I confirm "User Example" exists in the "Search users" search combo box
Línea 217... Línea 217...
217
    And I set the field "Search users" to "ABC"
217
    And I set the field "Search users" to "ABC"
218
    And I wait "1" seconds
218
    And I wait "1" seconds
219
    And I press the tab key
219
    And I press the tab key
220
    And the focused element is "Clear search input" "button" in the ".user-search" "css_element"
220
    And the focused element is "Clear search input" "button" in the ".user-search" "css_element"
221
    And I press the enter key
221
    And I press the enter key
222
    And I confirm "Turtle Manatee" in "user" search within the gradebook widget does not exist
222
    And I confirm "Turtle Manatee" does not exist in the "Search users" search combo box