| Línea 29... |
Línea 29... |
| 29 |
And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
|
29 |
And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
|
| Línea 30... |
Línea 30... |
| 30 |
|
30 |
|
| 31 |
Scenario: A teacher can open the filter component
|
31 |
Scenario: A teacher can open the filter component
|
| 32 |
Given I should see "Filter by name"
|
32 |
Given I should see "Filter by name"
|
| 33 |
When I click on "Filter by name" "combobox"
|
33 |
When I click on "Filter by name" "combobox"
|
| 34 |
Then I should see "27" node occurrences of type "input" in the "First name" "core_grades > initials bar"
|
34 |
Then I should see "27" node occurrences of type "input" in the "First name" "core_course > initials bar"
|
| 35 |
And I should see "27" node occurrences of type "input" in the "Last name" "core_grades > initials bar"
|
35 |
And I should see "27" node occurrences of type "input" in the "Last name" "core_course > initials bar"
|
| 36 |
And "input[data-action=cancel]" "css_element" should exist
|
36 |
And "input[data-action=cancel]" "css_element" should exist
|
| Línea 37... |
Línea 37... |
| 37 |
And "input[data-action=save]" "css_element" should exist
|
37 |
And "input[data-action=save]" "css_element" should exist
|
| 38 |
|
38 |
|
| 39 |
Scenario: A teacher can filter the grader report to limit users reported
|
39 |
Scenario: A teacher can filter the grader report to limit users reported
|
| 40 |
Given I click on "Filter by name" "combobox"
|
40 |
Given I click on "Filter by name" "combobox"
|
| 41 |
And I wait until "input[data-action=save]" "css_element" exists
|
41 |
And I wait until "input[data-action=save]" "css_element" exists
|
| 42 |
When I select "D" in the "First name" "core_grades > initials bar"
|
42 |
When I select "D" in the "First name" "core_course > initials bar"
|
| 43 |
And I press "Apply"
|
43 |
And I press "Apply"
|
| 44 |
And I wait to be redirected
|
44 |
And I wait to be redirected
|
| 45 |
# We should only have one user that matches the "D" first name
|
45 |
# We should only have one user that matches the "D" first name
|
| Línea 55... |
Línea 55... |
| 55 |
| Turtle Manatee |
|
55 |
| Turtle Manatee |
|
| Línea 56... |
Línea 56... |
| 56 |
|
56 |
|
| 57 |
# Test filtering on last name
|
57 |
# Test filtering on last name
|
| 58 |
# Business logic: If all is selected, we will not show it i.e. First (D) and NOT First (D) Last (All)
|
58 |
# Business logic: If all is selected, we will not show it i.e. First (D) and NOT First (D) Last (All)
|
| 59 |
And I click on "First (D)" "combobox"
|
59 |
And I click on "First (D)" "combobox"
|
| 60 |
And I select "All" in the "First name" "core_grades > initials bar"
|
60 |
And I select "All" in the "First name" "core_course > initials bar"
|
| 61 |
And I select "M" in the "Last name" "core_grades > initials bar"
|
61 |
And I select "M" in the "Last name" "core_course > initials bar"
|
| 62 |
And I press "Apply"
|
62 |
And I press "Apply"
|
| 63 |
And I wait to be redirected
|
63 |
And I wait to be redirected
|
| 64 |
# We should only have one user that matches the "T" first name
|
64 |
# We should only have one user that matches the "T" first name
|
| 65 |
And the following should exist in the "user-grades" table:
|
65 |
And the following should exist in the "user-grades" table:
|
| Línea 73... |
Línea 73... |
| 73 |
| User Test |
|
73 |
| User Test |
|
| 74 |
| Dummy User |
|
74 |
| Dummy User |
|
| Línea 75... |
Línea 75... |
| 75 |
|
75 |
|
| 76 |
# Test filtering on first && last name
|
76 |
# Test filtering on first && last name
|
| 77 |
And I click on "Last (M)" "combobox"
|
77 |
And I click on "Last (M)" "combobox"
|
| 78 |
And I select "U" in the "First name" "core_grades > initials bar"
|
78 |
And I select "U" in the "First name" "core_course > initials bar"
|
| 79 |
And I select "T" in the "Last name" "core_grades > initials bar"
|
79 |
And I select "T" in the "Last name" "core_course > initials bar"
|
| 80 |
And I press "Apply"
|
80 |
And I press "Apply"
|
| 81 |
And I wait to be redirected
|
81 |
And I wait to be redirected
|
| 82 |
# We should only have one user that matches the "T" first name
|
82 |
# We should only have one user that matches the "T" first name
|
| 83 |
And the following should exist in the "user-grades" table:
|
83 |
And the following should exist in the "user-grades" table:
|
| Línea 94... |
Línea 94... |
| 94 |
And I click on "First (U) Last (T)" "combobox"
|
94 |
And I click on "First (U) Last (T)" "combobox"
|
| Línea 95... |
Línea 95... |
| 95 |
|
95 |
|
| 96 |
Scenario: A teacher can quickly tell that a filter is applied to the current table
|
96 |
Scenario: A teacher can quickly tell that a filter is applied to the current table
|
| 97 |
Given I click on "Filter by name" "combobox"
|
97 |
Given I click on "Filter by name" "combobox"
|
| 98 |
And I wait until "input[data-action=save]" "css_element" exists
|
98 |
And I wait until "input[data-action=save]" "css_element" exists
|
| 99 |
When I select "T" in the "First name" "core_grades > initials bar"
|
99 |
When I select "T" in the "First name" "core_course > initials bar"
|
| 100 |
And I press "Apply"
|
100 |
And I press "Apply"
|
| 101 |
And I wait to be redirected
|
101 |
And I wait to be redirected
|
| Línea 102... |
Línea 102... |
| 102 |
Then I should see "First (T)"
|
102 |
Then I should see "First (T)"
|
| 103 |
|
103 |
|
| 104 |
# Check if removing the filter, removes the highlight and user notice of applied filters
|
104 |
# Check if removing the filter, removes the highlight and user notice of applied filters
|
| 105 |
And I click on "First (T)" "combobox"
|
105 |
And I click on "First (T)" "combobox"
|
| 106 |
And I wait until "input[data-action=save]" "css_element" exists
|
106 |
And I wait until "input[data-action=save]" "css_element" exists
|
| 107 |
And I select "All" in the "First name" "core_grades > initials bar"
|
107 |
And I select "All" in the "First name" "core_course > initials bar"
|
| 108 |
And I press "Apply"
|
108 |
And I press "Apply"
|
| 109 |
And I wait to be redirected
|
109 |
And I wait to be redirected
|
| 110 |
# Check if the name button indicates if a filter is active
|
110 |
# Check if the name button indicates if a filter is active
|
| Línea 128... |
Línea 128... |
| 128 |
Given the following "language customisations" exist:
|
128 |
Given the following "language customisations" exist:
|
| 129 |
| component | stringid | value |
|
129 |
| component | stringid | value |
|
| 130 |
| core | all | すべて |
|
130 |
| core | all | すべて |
|
| 131 |
And I click on "Filter by name" "combobox"
|
131 |
And I click on "Filter by name" "combobox"
|
| 132 |
And "input[data-action=save]" "css_element" should be visible
|
132 |
And "input[data-action=save]" "css_element" should be visible
|
| 133 |
And I select "T" in the "First name" "core_grades > initials bar"
|
133 |
And I select "T" in the "First name" "core_course > initials bar"
|
| 134 |
And I press "Apply"
|
134 |
And I press "Apply"
|
| 135 |
And I wait to be redirected
|
135 |
And I wait to be redirected
|
| 136 |
And I click on "First (T)" "combobox"
|
136 |
And I click on "First (T)" "combobox"
|
| 137 |
And I wait until "input[data-action=save]" "css_element" exists
|
137 |
And I wait until "input[data-action=save]" "css_element" exists
|
| Línea 138... |
Línea 138... |
| 138 |
|
138 |
|
| 139 |
When I select "すべて" in the "First name" "core_grades > initials bar"
|
139 |
When I select "すべて" in the "First name" "core_course > initials bar"
|
| 140 |
And I press "Apply"
|
140 |
And I press "Apply"
|
| 141 |
And I wait to be redirected
|
141 |
And I wait to be redirected
|
| 142 |
Then I should not see "First (すべて) Last (すべて)"
|
142 |
Then I should not see "First (すべて) Last (すべて)"
|
| 143 |
And the following should exist in the "user-grades" table:
|
143 |
And the following should exist in the "user-grades" table:
|
| Línea 148... |
Línea 148... |
| 148 |
| User Test |
|
148 |
| User Test |
|
| 149 |
| Turtle Manatee |
|
149 |
| Turtle Manatee |
|
| Línea 150... |
Línea 150... |
| 150 |
|
150 |
|
| 151 |
Scenario: A teacher can search and then filter by first or last name
|
151 |
Scenario: A teacher can search and then filter by first or last name
|
| 152 |
Given I set the field "Search users" to "Student 1"
|
152 |
Given I set the field "Search users" to "Student 1"
|
| 153 |
And I click on "Student 1" in the "user" search widget
|
153 |
And I click on "Student 1" in the "Search users" search combo box
|
| 154 |
And I click on "Filter by name" "combobox"
|
154 |
And I click on "Filter by name" "combobox"
|
| 155 |
And I select "S" in the "First name" "core_grades > initials bar"
|
155 |
And I select "S" in the "First name" "core_course > initials bar"
|
| 156 |
When I press "Apply"
|
156 |
When I press "Apply"
|
| 157 |
And the field "Search users" matches value "Student 1"
|
157 |
And the field "Search users" matches value "Student 1"
|
| 158 |
Then the following should exist in the "user-grades" table:
|
158 |
Then the following should exist in the "user-grades" table:
|
| 159 |
| -1- | -2- | -3- |
|
159 |
| -1- | -2- | -3- |
|
| Línea 164... |
Línea 164... |
| 164 |
| Dummy User | student2@example.com | - |
|
164 |
| Dummy User | student2@example.com | - |
|
| 165 |
| User Example | student3@example.com | - |
|
165 |
| User Example | student3@example.com | - |
|
| 166 |
| User Test | student4@example.com | - |
|
166 |
| User Test | student4@example.com | - |
|
| 167 |
| Turtle Manatee | student5@example.com | - |
|
167 |
| Turtle Manatee | student5@example.com | - |
|
| 168 |
And I click on "First (S)" "combobox"
|
168 |
And I click on "First (S)" "combobox"
|
| 169 |
And I select "M" in the "First name" "core_grades > initials bar"
|
169 |
And I select "M" in the "First name" "core_course > initials bar"
|
| 170 |
And I press "Apply"
|
170 |
And I press "Apply"
|
| 171 |
And the following should not exist in the "user-grades" table:
|
171 |
And the following should not exist in the "user-grades" table:
|
| 172 |
| -1- | -2- | -3- |
|
172 |
| -1- | -2- | -3- |
|
| 173 |
| Student 1 | student1@example.com | - |
|
173 |
| Student 1 | student1@example.com | - |
|
| 174 |
| Teacher 1 | teacher1@example.com | - |
|
174 |
| Teacher 1 | teacher1@example.com | - |
|
| Línea 189... |
Línea 189... |
| 189 |
| -1- | -2- | -3- |
|
189 |
| -1- | -2- | -3- |
|
| 190 |
| Student 1 | student1@example.com | - |
|
190 |
| Student 1 | student1@example.com | - |
|
| 191 |
| Teacher 1 | teacher1@example.com | - |
|
191 |
| Teacher 1 | teacher1@example.com | - |
|
| 192 |
| Turtle Manatee | student5@example.com | - |
|
192 |
| Turtle Manatee | student5@example.com | - |
|
| 193 |
When I click on "Filter by name" "combobox"
|
193 |
When I click on "Filter by name" "combobox"
|
| 194 |
And I select "E" in the "Last name" "core_grades > initials bar"
|
194 |
And I select "E" in the "Last name" "core_course > initials bar"
|
| 195 |
And I press "Apply"
|
195 |
And I press "Apply"
|
| 196 |
Then the following should exist in the "user-grades" table:
|
196 |
Then the following should exist in the "user-grades" table:
|
| 197 |
| -1- | -2- | -3- |
|
197 |
| -1- | -2- | -3- |
|
| 198 |
| User Example | student3@example.com | - |
|
198 |
| User Example | student3@example.com | - |
|
| 199 |
And the following should not exist in the "user-grades" table:
|
199 |
And the following should not exist in the "user-grades" table:
|
| Línea 210... |
Línea 210... |
| 210 |
Given the page should meet accessibility standards
|
210 |
Given the page should meet accessibility standards
|
| 211 |
And the page should meet "wcag131, wcag141, wcag412" accessibility standards
|
211 |
And the page should meet "wcag131, wcag141, wcag412" accessibility standards
|
| 212 |
And the page should meet accessibility standards with "wcag131, wcag141, wcag412" extra tests
|
212 |
And the page should meet accessibility standards with "wcag131, wcag141, wcag412" extra tests
|
| 213 |
And I click on "Filter by name" "combobox"
|
213 |
And I click on "Filter by name" "combobox"
|
| 214 |
And "input[data-action=save]" "css_element" should be visible
|
214 |
And "input[data-action=save]" "css_element" should be visible
|
| 215 |
And the focused element is "All" "button" in the "First name" "core_grades > initials bar"
|
215 |
And the focused element is "All" "button" in the "First name" "core_course > initials bar"
|
| 216 |
When I press the tab key
|
216 |
When I press the tab key
|
| 217 |
Then the focused element is "input[value=A]" "css_element" in the "First name" "core_grades > initials bar"
|
217 |
Then the focused element is "input[value=A]" "css_element" in the "First name" "core_course > initials bar"
|
| 218 |
And I press the tab key
|
218 |
And I press the tab key
|
| 219 |
And the focused element is "input[value=B]" "css_element" in the "First name" "core_grades > initials bar"
|
219 |
And the focused element is "input[value=B]" "css_element" in the "First name" "core_course > initials bar"
|