From 65e274d76fadfea6f775aee2517d4b09dab0982d Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Wed, 15 Oct 2014 10:36:03 +0800 Subject: [PATCH] MDL-47676 core_grades: Behat test for negative weights. --- grade/tests/behat/grade_natural_normalisation.feature | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/grade/tests/behat/grade_natural_normalisation.feature b/grade/tests/behat/grade_natural_normalisation.feature index a2d50cb325c..c1d325a5f72 100644 --- a/grade/tests/behat/grade_natural_normalisation.feature +++ b/grade/tests/behat/grade_natural_normalisation.feature @@ -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" \ No newline at end of file