MDL-47676 core_grades: Behat test for negative weights.

This commit is contained in:
Adrian Greeve 2014-10-15 10:36:03 +08:00
parent cd5c7965e0
commit 65e274d76f

View File

@ -263,5 +263,14 @@ Feature: We can use natural aggregation and weights will be normalised to a tota
And I set the field "Override weight of Test assignment six" to "1"
And I set the field "Weight of Test assignment six" to "-25"
And I press "Save changes"
Then the field "Weight of Test assignment six" matches value "0.0"
And the field "Weight of Test assignment six" matches value "0.0"
And the field "Weight of Test assignment seven" matches value "100.0"
And I follow "Reset weights of Sub category 1"
And I set the field "Override weight of Test assignment five" to "1"
And I set the field "Override weight of Test assignment six" to "1"
And I set the field "Weight of Test assignment five" to "-10"
And I set the field "Weight of Test assignment six" to "120"
And I press "Save changes"
And the field "Weight of Test assignment five" matches value "0.0"
And the field "Weight of Test assignment six" matches value "100.0"
And the field "Weight of Test assignment seven" matches value "0.0"