And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I follow "Single view for Test assignment one"
- Then the field "Grade for james (Student) 1" matches value "50.00"
- And the field "Override for james (Student) 1" matches value "0"
+ Then the field "Grade for Student 1" matches value "50.00"
+ And the field "Override for Student 1" matches value "0"
And I set the field "Perform bulk insert" to "1"
And I set the field "Insert value" to "1.0"
And I press "Save"
And I press "Continue"
- And the field "Grade for james (Student) 1" matches value "50.00"
- And the field "Override for james (Student) 1" matches value "0"
- And the field "Grade for holly (Student) 2" matches value "1.00"
- And the field "Override for holly (Student) 2" matches value "1"
- And the field "Grade for anna (Student) 3" matches value "1.00"
- And the field "Override for anna (Student) 3" matches value "1"
- And the field "Grade for zac (Student) 4" matches value "1.00"
- And the field "Override for zac (Student) 4" matches value "1"
+ And the field "Grade for Student 1" matches value "50.00"
+ And the field "Override for Student 1" matches value "0"
+ And the field "Grade for Student 2" matches value "1.00"
+ And the field "Override for Student 2" matches value "1"
+ And the field "Grade for Student 3" matches value "1.00"
+ And the field "Override for Student 3" matches value "1"
+ And the field "Grade for Student 4" matches value "1.00"
+ And the field "Override for Student 4" matches value "1"
And I set the field "For" to "All grades"
And I set the field "Perform bulk insert" to "1"
And I set the field "Insert value" to "2.0"
And I press "Save"
And I press "Continue"
- And the field "Grade for james (Student) 1" matches value "2.00"
- And the field "Override for james (Student) 1" matches value "1"
- And the field "Grade for holly (Student) 2" matches value "2.00"
- And the field "Override for holly (Student) 2" matches value "1"
- And the field "Grade for anna (Student) 3" matches value "2.00"
- And the field "Override for anna (Student) 3" matches value "1"
- And the field "Grade for zac (Student) 4" matches value "2.00"
- And the field "Override for zac (Student) 4" matches value "1"
+ And the field "Grade for Student 1" matches value "2.00"
+ And the field "Override for Student 1" matches value "1"
+ And the field "Grade for Student 2" matches value "2.00"
+ And the field "Override for Student 2" matches value "1"
+ And the field "Grade for Student 3" matches value "2.00"
+ And the field "Override for Student 3" matches value "1"
+ And the field "Grade for Student 4" matches value "2.00"
+ And the field "Override for Student 4" matches value "1"
Scenario: I can bulk insert grades and check their override flags for user view.
Given I log in as "teacher1"
And I set the field "Perform bulk insert" to "1"
When I set the field "Insert value" to "-1"
And I press "Save"
- Then I should see "The grade entered for Test assignment one for james (Student) 1 is less than the minimum allowed"
- And I should see "The grade entered for Test assignment one for holly (Student) 2 is less than the minimum allowed"
- And I should see "The grade entered for Test assignment one for anna (Student) 3 is less than the minimum allowed"
- And I should see "The grade entered for Test assignment one for zac (Student) 4 is less than the minimum allowed"
+ Then I should see "The grade entered for Test assignment one for Student 1 is less than the minimum allowed"
+ And I should see "The grade entered for Test assignment one for Student 2 is less than the minimum allowed"
+ And I should see "The grade entered for Test assignment one for Student 3 is less than the minimum allowed"
+ And I should see "The grade entered for Test assignment one for Student 4 is less than the minimum allowed"
And I should see "Grades were set for 0 items"