@@ -111,7 +111,7 @@ Feature: Using the activity grade form element
# Try saving the form and visiting it back to verify that everything is working ok.
And I press "Save and display"
And I should not see "When selecting a ratings aggregate type you must also select"
And I click on "Edit settings""link"
And I click on "Edit settings""link" in the "Administration""block"
And I expand all fieldsets
And the field "Aggregate type" matches value "Average of ratings"
And the field "scale[modgrade_type]" matches value "Scale"
...
...
@@ -142,17 +142,17 @@ Feature: Using the activity grade form element
|grade[modgrade_scale]|ABCDEF|
And I follow "Course 1"
And I follow "Test assignment name"
And I follow"View all submissions"
And I click on"View all submissions""link" in the "Administration""block"
And I click on "Grade""link" in the "Student 1""table_row"
And I set the field "Grade" to "C"
And I press "Save changes"
And I press "Ok"
And I click on "Edit settings""link"
And I click on "Edit settings""link" in the "Administration""block"
When I expand all fieldsets
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed"
# Try saving the form and visiting it back to verify everything is working ok.
And I press "Save and display"
And I click on "Edit settings""link"
And I click on "Edit settings""link" in the "Administration""block"
And I expand all fieldsets
And the field "grade[modgrade_type]" matches value "Scale"
And the field "grade[modgrade_scale]" matches value "ABCDEF"
...
...
@@ -202,11 +202,11 @@ Feature: Using the activity grade form element
|Description|Testassignmentdescription|
And I follow "Course 1"
And I follow "Test assignment name"
And I follow"View all submissions"
And I click on"View all submissions""link" in the "Administration""block"
And I click on "Grade""link" in the "Student 1""table_row"
And I set the field "Grade out of 100" to "50"
And I press "Save changes"
And I press "Ok"
And I click on "Edit settings""link"
And I click on "Edit settings""link" in the "Administration""block"
When I expand all fieldsets
Then I should see "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades."