mirror of
https://github.com/moodle/moodle.git
synced 2025-04-09 02:12:22 +02:00
MDL-55520 assign: Behat test for rescaling max grades bug
Verify the max grade is not silently changed back to 100 when you visit and save the assignment settings form.
This commit is contained in:
parent
c3d4d3f7c1
commit
a95014f5b4
@ -45,6 +45,22 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
|
||||
And I follow "View all submissions"
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update an assignment without touching the max grades
|
||||
Given I follow "Edit settings"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "No"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
And I press "Save and display"
|
||||
And I follow "Edit settings"
|
||||
And I press "Save and display"
|
||||
And I follow "Edit settings"
|
||||
And I expand all fieldsets
|
||||
And I set the field "Rescale existing grades" to "Yes"
|
||||
And I set the field "Maximum grade" to "80"
|
||||
When I press "Save and display"
|
||||
And I follow "View all submissions"
|
||||
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
|
||||
|
||||
Scenario: Update the max grade for an assignment rescaling existing grades
|
||||
Given I follow "Edit settings"
|
||||
And I expand all fieldsets
|
||||
|
Loading…
x
Reference in New Issue
Block a user