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:13:31 +08:00
parent c3d4d3f7c1
commit a95014f5b4

View File

@ -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