[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: Edit completion settings of an activity 3 In order to edit completion settings without accidentally breaking user data 4 As a teacher 5 I need to edit the activity and use the unlock button if required 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | enablecompletion | 10 | Course 1 | C1 | 1 | 11 And I log in as "admin" 12 And I am on site homepage 13 And I follow "Course 1" 14 And I turn editing mode on 15 And I add a "Page" to section "1" and I fill the form with: 16 | Name | TestPage | 17 | Description | x | 18 | Page content | x | 19 | Completion tracking | 2 | 20 | Require view | 1 | 21 And I follow "Course 1" 22 23 Scenario: Completion is not locked when the activity has not yet been viewed 24 Given I click on "Edit settings" "link" in the "TestPage" activity 25 When I expand all fieldsets 26 Then I should see "Completion tracking" 27 And I should not see "Completion options locked" 28 29 Scenario: Completion is locked after the activity has been viewed 30 Given I follow "TestPage" 31 When I follow "Edit settings" 32 And I expand all fieldsets 33 Then I should see "Completion options locked" 34 35 @javascript 36 Scenario: Pressing the unlock button allows the user to edit completion settings 37 Given I follow "TestPage" 38 When I follow "Edit settings" 39 And I expand all fieldsets 40 And I press "Unlock completion options" 41 Then I should see "Completion options unlocked" 42 And I set the field "Completion tracking" to "Students can manually mark the activity as completed" 43 And I press "Save and display" 44 And I follow "Edit settings" 45 And I expand all fieldsets 46 Then the field "Completion tracking" matches value "Students can manually mark the activity as completed" 47 48 @javascript 49 Scenario: Even when completion is locked, the user can still set the date 50 Given I follow "TestPage" 51 And I follow "Edit settings" 52 And I expand all fieldsets 53 When I click on "id_completionexpected_enabled" "checkbox" 54 And I set the field "id_completionexpected_year" to "2013" 55 And I press "Save and display" 56 And I follow "Edit settings" 57 And I expand all fieldsets 58 Then the field "id_completionexpected_year" matches value "2013"
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 |