This commit is contained in:
Eloy Lafuente (stronk7) 2017-01-11 02:42:29 +01:00
commit 777361983c
99 changed files with 562 additions and 543 deletions

View file

@ -4,7 +4,6 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
As a teacher
I need to be able to update and verify grades
Background:
Given the following "courses" exist:
| fullname | shortname | category | groupmode |

View file

@ -8,10 +8,10 @@ Feature: We can use the user report
| fullname | shortname | category |
| Course 1 | C1 | 0 |
Scenario: Verify we can view a user grade report with no users enrolled.
Given I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I navigate to "View > User report" in the course gradebook
And I select "All users (0)" from the "Select all or one user" singleselect
Then I should see "No students enrolled in this course yet"
Scenario: Verify we can view a user grade report with no users enrolled.
Given I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I navigate to "View > User report" in the course gradebook
And I select "All users (0)" from the "Select all or one user" singleselect
Then I should see "No students enrolled in this course yet"

View file

@ -52,7 +52,7 @@ Feature: Calculated grade items can be used in the gradebook
@javascript
Scenario: Changing max grade for a category item with a calculation that has existing grades will display the same points with the new max grade values immediately.
Given I press "Add category"
Given I press "Add category"
And I set the following fields to these values:
| Category name | Calc cat |
And I press "Save changes"

View file

@ -1,5 +1,5 @@
@core_grades
Feature: Editing a grade item
Feature: Grade item validation
In order to ensure validation is provided to the teacher
As a teacher
I need to know why I can not add/edit values on the grade item form

View file

@ -1,5 +1,5 @@
@core @core_grades
Feature: We can customise the letter boundary of a course.
Feature: We can customise the letter boundary of a course in gradebook version 20160518.
In order to change the letter boundary of a course
As a teacher
I need to add assessments to the gradebook.

View file

@ -229,39 +229,37 @@ Feature: We can use natural aggregation and weights will be normalised to a tota
@javascript
Scenario: With one grade item set as extra credit, when I reset the weights for a category they return to the natural weights.
When I set the following settings for grade item "Test assignment five":
| Extra credit | 1 |
And I set the field "Override weight of Test assignment six" to "1"
And I set the field "Override weight of Test assignment seven" to "1"
And I set the field "Weight of Test assignment six" to "55"
And I set the field "Weight of Test assignment seven" to "40"
And I press "Save changes"
And I reset weights for grade category "Sub category 1"
Then the field "Weight of Test assignment five" matches value "80.0"
And the field "Weight of Test assignment six" matches value "40.0"
And the field "Weight of Test assignment seven" matches value "60.0"
When I set the following settings for grade item "Test assignment five":
| Extra credit | 1 |
And I set the field "Override weight of Test assignment six" to "1"
And I set the field "Override weight of Test assignment seven" to "1"
And I set the field "Weight of Test assignment six" to "55"
And I set the field "Weight of Test assignment seven" to "40"
And I press "Save changes"
And I reset weights for grade category "Sub category 1"
Then the field "Weight of Test assignment five" matches value "80.0"
And the field "Weight of Test assignment six" matches value "40.0"
And the field "Weight of Test assignment seven" matches value "60.0"
@javascript
Scenario: Overriding a grade item with a negative value results in the value being changed to zero.
When I set the field "Override weight of Test assignment five" to "1"
And I set the field "Weight of Test assignment five" to "-15"
And I press "Save changes"
Then the field "Weight of Test assignment five" matches value "0.0"
And the field "Weight of Test assignment six" matches value "40.0"
And the field "Weight of Test assignment seven" matches value "60.0"
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"
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 reset weights for grade category "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"
When I set the field "Override weight of Test assignment five" to "1"
And I set the field "Weight of Test assignment five" to "-15"
And I press "Save changes"
Then the field "Weight of Test assignment five" matches value "0.0"
And the field "Weight of Test assignment six" matches value "40.0"
And the field "Weight of Test assignment seven" matches value "60.0"
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"
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 reset weights for grade category "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"