X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/blocks/completionstatus/tests/behat
home
/
cbholdings
/
pasukulu
/
blocks
/
completionstatus
/
tests
/
behat
/
📁
..
📄
block_completionstatus.feature
(2.64 KB)
📄
block_completionstatus_activity_completion.feature
(6.93 KB)
📄
block_completionstatus_manual_other.feature
(4.87 KB)
📄
block_completionstatus_manual_self.feature
(2.4 KB)
Editing: block_completionstatus_manual_self.feature
@block @block_completionstatus @block_selfcompletion Feature: Enable Block Completion in a course using manual self completion In order to view the completion block in a course As a teacher I can add completion block to a course and set up manual self completion Scenario: Add the block to a the course and manually complete the course Given the following "users" exist: | username | firstname | lastname | email | idnumber | | teacher1 | Teacher | 1 | teacher1@example.com | T1 | | student1 | Student | 1 | student1@example.com | S1 | And the following "courses" exist: | fullname | shortname | category | enablecompletion | | Course 1 | C1 | 0 | 1 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | And I enable "selfcompletion" "block" plugin And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | completionstatus | Course | C1 | course-view-* | side-pre | | selfcompletion | Course | C1 | course-view-* | side-pre | And I am on the "Course 1" course page logged in as teacher1 And I navigate to "Course completion" in current page administration And I expand all fieldsets And I set the following fields to these values: | id_criteria_self | 1 | And I press "Save changes" When I am on the "Course 1" course page logged in as student1 And I should see "Status: Not yet started" in the "Course completion status" "block" And I should see "No" in the "Self completion" "table_row" And I follow "Complete course" And I should see "Confirm self completion" And I press "Yes" And I should see "Status: In progress" in the "Course completion status" "block" # Running completion task just after clicking sometimes fail, as record # should be created before the task runs. And I wait "1" seconds And I run the scheduled task "core\task\completion_regular_task" And I am on "Course 1" course homepage Then I should see "Status: Complete" in the "Course completion status" "block" And I should see "Yes" in the "Self completion" "table_row" And I follow "More details" And I should see "Yes" in the "Self completion" "table_row"
Upload File
Create Folder