Project: moodle
Issue MDL-46595: Add behat tests
Base these on the ["Calculation examples" section in the spec|http://docs.moodle.org/dev/Natural_weighting#Calculation_examples]. These should be written very early to prove the state of the code. Also the items under ["Logic changes" should be covered|http://docs.moodle.org/dev/Natural_weighting#Logic_changes]. In particular "Sum of Grades aggregation must be fixed to exclude hidden items and to exclude non-graded items" and "Determination of range (in Grader and User report) and Max grade (in Setup screen) must be fixed to exclude extra credit items". Write new behat tests for the new UI.
Story points: 40