AutorÃa | Ultima modificación | Ver Log |
@core @core_completion @javascriptFeature: Students will be marked as completed if they have achieved a passing grade.Background:Given the following "courses" exist:| fullname | shortname | category | enablecompletion || Course 1 | C1 | 0 | 1 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | First | teacher1@example.com || student1 | Student | First | student1@example.com || student2 | Student | Second | student2@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student || student2 | C1 | student |And the following "activity" exists:| idnumber | a1 || activity | assign || course | C1 || name | Test assignment name || intro | Submit your online text || assignsubmission_onlinetext_enabled | 1 || assignsubmission_file_enabled | 0 || completion | 2 || completionpassgrade | 1 || completionusegrade | 1 || gradepass | 50 |And I am on the "Course 1" course page logged in as teacher1And "Student First" user has not completed "Test assignment name" activityScenario: Passing grade completionGiven I am on the "Course 1" "grades > Grader report > View" pageAnd I turn editing mode onAnd I give the grade "21" to the user "Student First" for the grade item "Test assignment name"And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name"And I press "Save changes"When I am on the "Course 1" course page logged in as student1Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed"And I am on the "Course 1" course page logged in as student2And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done"