Rev 1 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_gradesFeature: Regrading grades does not unnecessarily mark some as overridenIn order to regrade a grade itemAs an adminI need to keep the overridden status of all gradesBackground:Given the following "courses" exist:| fullname | shortname | category | format || Course 1 | C1 | 0 | topics |And the following "users" exist:| username | firstname | lastname | email | idnumber || student1 | Student | 1 | student1@example.com | s1 || student2 | Student | 2 | student2@example.com | s2 |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student || student2 | C1 | student |And the following "activities" exist:| activity | course | idnumber | name | intro || assign | C1 | assign1 | Assignment 1 | Assignment 1 intro |And I log in as "admin"And I navigate to "Grades > Grade category settings" in site administrationAnd I set the field "Available aggregation types" to "Weighted mean of grades"And I press "Save changes"And I am on the "Assignment 1" "assign activity" pageAnd I follow "View all submissions"And I click on "Grade" "link" in the "Student 1" "table_row"And I set the field "Grade out of 100" to "80"And I press "Save and show next"And I set the field "Grade out of 100" to "60"And I press "Save changes"And I am on the "Course 1" "grades > Grader report > View" pageAnd the following should exist in the "gradereport-grader-table" table:| -1- | -3- | -4- || First name | Assignment 1 | Course total || Student 1 | 80.00 | 80.00 || Student 2 | 60.00 | 60.00 |And I turn editing mode onAnd I give the grade "80.00" to the user "Student 2" for the grade item "Course total"And I press "Save changes"And I navigate to "Setup > Gradebook setup" in the course gradebookAnd I set the following settings for grade item "Course 1" of type "course" on "setup" page:| Aggregation | Weighted mean of grades || Rescale overridden grades | Yes || Maximum grade | 200 |And I press "Save changes"@javascriptScenario: Confirm regrading did not overwrite overridden statusGiven I navigate to "View > Grader report" in the course gradebookThen "td.overridden" "css_element" should not exist in the "Student 1" "table_row"And "td.overridden" "css_element" should exist in the "Student 2" "table_row"@javascriptScenario: Confirm overridden course total does not get regraded when activity grade is changedGiven I am on the "Assignment 1" "assign activity" pageAnd I follow "View all submissions"And I click on "Grade" "link" in the "Student 1" "table_row"And I set the field "Grade out of 100" to "90"And I press "Save and show next"And I set the field "Grade out of 100" to "70"And I press "Save changes"When I am on the "Course 1" "grades > Grader report > View" pageAnd I turn editing mode offThen the following should exist in the "gradereport-grader-table" table:| -1- | -3- | -4- || First name | Assignment 1 | Course total || Student 1 | 90.00 | 180.00 || Student 2 | 70.00 | 160.00 |