| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_completionstatus 2 Feature: Enable Block Completion in a course 3 In order to view the completion block in a course 4 As a teacher 5 I can add completion block to a course 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | idnumber | 10 | teacher1 | Teacher | 1 | teacher1@example.com | T1 | 11 | student1 | Student | 1 | student1@example.com | S1 | 12 And the following "courses" exist: 13 | fullname | shortname | category | enablecompletion | 14 | Course 1 | C1 | 0 | 1 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 20 Scenario: Add the block to a the course where completion is disabled 21 Given I log in as "teacher1" 22 And I follow "Course 1" 23 And I turn editing mode on 24 And I navigate to "Edit settings" node in "Course administration" 25 And I set the following fields to these values: 26 | Enable completion tracking | No | 27 And I press "Save and display" 28 When I add the "Course completion status" block 29 Then I should see "Completion is not enabled for this course" in the "Course completion status" "block" 30 31 Scenario: Add the block to a the course where completion is not set 32 Given I log in as "teacher1" 33 And I follow "Course 1" 34 And I turn editing mode on 35 When I add the "Course completion status" block 36 Then I should see "No completion criteria set for this course" in the "Course completion status" "block" 37 38 Scenario: Add the block to a course with criteria and view as an untracked role. 39 Given the following "activities" exist: 40 | activity | course | idnumber | name | intro | 41 | page | C1 | page1 | Test page name | Test page description | 42 And I log in as "teacher1" 43 And I follow "Course 1" 44 And I turn editing mode on 45 And I follow "Test page name" 46 And I navigate to "Edit settings" node in "Page module administration" 47 And I set the following fields to these values: 48 | Completion tracking | Show activity as complete when conditions are met | 49 | Require view | 1 | 50 And I press "Save and return to course" 51 When I add the "Course completion status" block 52 And I navigate to "Course completion" node in "Course administration" 53 And I expand all fieldsets 54 And I set the following fields to these values: 55 | Test page name | 1 | 56 And I press "Save changes" 57 Then I should see "You are currently not being tracked by completion in this course" in the "Course completion status" "block"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |