Skip to content

Commit

Permalink
MDL-81249 gradingform: Behat test that grades are retained if method …
Browse files Browse the repository at this point in the history
…is changed
  • Loading branch information
andelacruz committed May 29, 2024
1 parent 1a52293 commit df97f45
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions grade/grading/form/guide/tests/behat/assign_marking_guide.feature
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,23 @@ Feature: Display marking guide information to students
| criteria | description | remark | maxscore | criteriascore |
| Grade Criteria 1 | Grade 1 description for students | Excellent work! | 70 | 50 / 70 |
| Grade Criteria 2 | Grade 2 description for students | Try harder | 30 | 20 / 30 |

Scenario: Confirm that marking guide definition is retained when grading method is changed
Given I am on the "Assign 1" "assign activity" page
And I go to "Student 1" "Assign 1" activity advanced grading page
And I grade by filling the marking guide with:
| Grade Criteria 1 | 70 | Well done! |
| Grade Criteria 2 | 20 | Great work |
And I press "Save changes"
And I am on the "Assign 1" "assign activity editing" page
And I set the following fields to these values:
| Grading method | Simple direct grading |
And I press "Save and return to course"
And I navigate to "View > Grader report" in the course gradebook
And the following should exist in the "user-grades" table:
| -1- | -1- | -3- |
| Student 1 | student1@example.com | 90 |
And I am on the "Assign 1" "assign activity editing" page
And I set the following fields to these values:
| Grading method | Marking guide |
And I press "Save and display"

0 comments on commit df97f45

Please sign in to comment.