MDL-55520 assign: Behat test for rescaling max grades bug

Verify the max grade is not silently changed back to 100 when you visit
and save the assignment settings form.
This commit is contained in:
Damyon Wiese
2016-08-11 15:14:38 +08:00
parent 6037304fc1
commit e5775ef5b2
@@ -45,6 +45,22 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I follow "View all submissions"
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
Scenario: Update an assignment without touching the max grades
Given I follow "Edit settings"
And I expand all fieldsets
And I set the field "Rescale existing grades" to "No"
And I set the field "Maximum grade" to "80"
And I press "Save and display"
And I follow "Edit settings"
And I press "Save and display"
And I follow "Edit settings"
And I expand all fieldsets
And I set the field "Rescale existing grades" to "Yes"
And I set the field "Maximum grade" to "80"
When I press "Save and display"
And I follow "View all submissions"
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
Scenario: Update the max grade for an assignment rescaling existing grades
Given I follow "Edit settings"
And I expand all fieldsets