Línea 17... |
Línea 17... |
17 |
|
17 |
|
18 |
@javascript
|
18 |
@javascript
|
19 |
Scenario: Completion conditions when there is no default set at site or course level.
|
19 |
Scenario: Completion conditions when there is no default set at site or course level.
|
20 |
Given I log in as "teacher1"
|
20 |
Given I log in as "teacher1"
|
21 |
And I am on "Course 1" course homepage with editing mode on
|
21 |
And I am on "Course 1" course homepage with editing mode on
|
22 |
And I press "Add an activity or resource"
|
22 |
And I open the activity chooser
|
23 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
23 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
24 |
And I expand all fieldsets
|
24 |
And I expand all fieldsets
|
25 |
Then the field "None" matches value "1"
|
25 |
Then the field "None" matches value "1"
|
26 |
And the field "Add requirements" matches value "0"
|
26 |
And the field "Add requirements" matches value "0"
|
Línea 38... |
Línea 38... |
38 |
| completionview_scorm | 1 |
|
38 |
| completionview_scorm | 1 |
|
39 |
| completionstatusrequired_scorm[4] | 0 |
|
39 |
| completionstatusrequired_scorm[4] | 0 |
|
40 |
| completionstatusrequired_scorm[2] | 0 |
|
40 |
| completionstatusrequired_scorm[2] | 0 |
|
41 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
41 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
42 |
And I am on "Course 1" course homepage with editing mode on
|
42 |
And I am on "Course 1" course homepage with editing mode on
|
43 |
And I press "Add an activity or resource"
|
43 |
And I open the activity chooser
|
44 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
44 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
45 |
And I expand all fieldsets
|
45 |
And I expand all fieldsets
|
46 |
Then the field "None" matches value "0"
|
46 |
Then the field "None" matches value "0"
|
47 |
And the field "Add requirements" matches value "1"
|
47 |
And the field "Add requirements" matches value "1"
|
48 |
And the field "completionview" matches value "1"
|
48 |
And the field "completionview" matches value "1"
|
Línea 60... |
Línea 60... |
60 |
| completionview_scorm | 1 |
|
60 |
| completionview_scorm | 1 |
|
61 |
| completionstatusrequired_scorm[4] | 0 |
|
61 |
| completionstatusrequired_scorm[4] | 0 |
|
62 |
| completionstatusrequired_scorm[2] | 0 |
|
62 |
| completionstatusrequired_scorm[2] | 0 |
|
63 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
63 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
64 |
And I am on "Course 1" course homepage with editing mode on
|
64 |
And I am on "Course 1" course homepage with editing mode on
|
65 |
And I press "Add an activity or resource"
|
65 |
And I open the activity chooser
|
66 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
66 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
67 |
And I expand all fieldsets
|
67 |
And I expand all fieldsets
|
68 |
Then the field "None" matches value "0"
|
68 |
Then the field "None" matches value "0"
|
69 |
And the field "Add requirements" matches value "1"
|
69 |
And the field "Add requirements" matches value "1"
|
70 |
And the field "completionview" matches value "1"
|
70 |
And the field "completionview" matches value "1"
|
Línea 84... |
Línea 84... |
84 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
84 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
85 |
And the following "core_completion > Course defaults" exist:
|
85 |
And the following "core_completion > Course defaults" exist:
|
86 |
| course | module | completion |
|
86 |
| course | module | completion |
|
87 |
| C1 | scorm | 1 |
|
87 |
| C1 | scorm | 1 |
|
88 |
And I am on "Course 1" course homepage with editing mode on
|
88 |
And I am on "Course 1" course homepage with editing mode on
|
89 |
And I press "Add an activity or resource"
|
89 |
And I open the activity chooser
|
90 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
90 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
91 |
And I expand all fieldsets
|
91 |
And I expand all fieldsets
|
92 |
Then the field "None" matches value "0"
|
92 |
Then the field "None" matches value "0"
|
93 |
And the field "Students must manually mark the activity as done" matches value "1"
|
93 |
And the field "Students must manually mark the activity as done" matches value "1"
|
94 |
And the field "Add requirements" matches value "0"
|
94 |
And the field "Add requirements" matches value "0"
|
Línea 103... |
Línea 103... |
103 |
| completionview_scorm | 1 |
|
103 |
| completionview_scorm | 1 |
|
104 |
| completionstatusrequired_scorm[4] | 0 |
|
104 |
| completionstatusrequired_scorm[4] | 0 |
|
105 |
| completionstatusrequired_scorm[2] | 1 |
|
105 |
| completionstatusrequired_scorm[2] | 1 |
|
106 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
106 |
And I click on "Save changes" "button" in the "[data-region='activitycompletion-scorm']" "css_element"
|
107 |
And I am on "Course 1" course homepage with editing mode on
|
107 |
And I am on "Course 1" course homepage with editing mode on
|
- |
|
108 |
# When I add a "Teaching Tool 1" to section "1" using the activity chooser
|
108 |
And I press "Add an activity or resource"
|
109 |
And I open the activity chooser
|
109 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
110 |
When I click on "Add a new SCORM" "link" in the "Add an activity or resource" "dialogue"
|
110 |
And I expand all fieldsets
|
111 |
And I expand all fieldsets
|
111 |
Then the field "None" matches value "0"
|
112 |
Then the field "None" matches value "0"
|
112 |
And the field "Add requirements" matches value "1"
|
113 |
And the field "Add requirements" matches value "1"
|
113 |
And the field "completionview" matches value "1"
|
114 |
And the field "completionview" matches value "1"
|