X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/completion/tests/behat
home
/
cbholdings
/
pasukulu
/
completion
/
tests
/
behat
/
📁
..
📄
activity_completion_criteria.feature
(8.06 KB)
📄
backup_restore_completion.feature
(3.22 KB)
📄
behat_completion.php
(19.11 KB)
📄
bulk_edit_activity_completion.feature
(6.73 KB)
📄
completion_course_page_display.feature
(3.12 KB)
📄
completion_no_calendar_capabilities.feature
(1.79 KB)
📄
completion_other_courses.feature
(1.48 KB)
📄
course_completion_activity_criteria.feature
(9.79 KB)
📄
custom_completion_display_conditions.feature
(4.52 KB)
📄
default_activity_completion.feature
(3.15 KB)
📄
enable_completion_on_pass_grade.feature
(2.81 KB)
📄
enable_completion_on_view_and_grade.feature
(5.1 KB)
📄
enable_manual_complete_mark.feature
(1.76 KB)
📄
passgrade_completion_criteria_gradeitem_visibility.feature
(8.28 KB)
📄
restrict_activity_by_date.feature
(2.84 KB)
📄
restrict_activity_by_grade.feature
(2.88 KB)
📄
restrict_section_availability.feature
(4.52 KB)
📄
teacher_manual_completion.feature
(1.97 KB)
Editing: enable_completion_on_pass_grade.feature
@core @core_completion @javascript Feature: 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 | Frist | 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 log in as "teacher1" And I am on "Course 1" course homepage And "Student First" user has not completed "Test assignment name" activity And I log out Scenario: Passing grade completion Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And 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" And I log out When I log in as "student1" And I am on "Course 1" course homepage And 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 log out And I log in as "student2" And I am on "Course 1" course homepage And 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"
Upload File
Create Folder