Línea 35... |
Línea 35... |
35 |
And the following "mod_lesson > answers" exist:
|
35 |
And the following "mod_lesson > answers" exist:
|
36 |
| page | answer | jumpto | score |
|
36 |
| page | answer | jumpto | score |
|
37 |
| Music history part 1 | The history of music part 1 | Next page | 0 |
|
37 |
| Music history part 1 | The history of music part 1 | Next page | 0 |
|
38 |
| Music essay | | Next page | 1 |
|
38 |
| Music essay | | Next page | 1 |
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
Scenario: View automatic completion items as a teacher
|
40 |
Scenario: A teacher can view a lesson activity automatic completion conditions
|
41 |
When I am on the "Music history" "lesson activity" page logged in as teacher1
|
41 |
When I am on the "Music history" "lesson activity" page logged in as teacher1
|
42 |
Then "Music history" should have the "View" completion condition
|
42 |
Then "Music history" should have the "View" completion condition
|
43 |
And "Music history" should have the "Spend at least 3 secs on this activity" completion condition
|
43 |
And "Music history" should have the "Spend at least 3 secs on this activity" completion condition
|
44 |
And "Music history" should have the "Go through the activity to the end" completion condition
|
44 |
And "Music history" should have the "Go through the activity to the end" completion condition
|
Línea 45... |
Línea 45... |
45 |
And "Music history" should have the "Receive a grade" completion condition
|
45 |
And "Music history" should have the "Receive a grade" completion condition
|
46 |
|
46 |
|
47 |
Scenario: View automatic completion items as a student
|
47 |
Scenario: A student can complete a lesson activity by meeting the completion conditions
|
48 |
Given I am on the "Music history" "lesson activity" page logged in as student1
|
48 |
Given I am on the "Music history" "lesson activity" page logged in as student1
|
49 |
And the "View" completion condition of "Music history" is displayed as "done"
|
49 |
And the "View" completion condition of "Music history" is displayed as "done"
|
50 |
And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "todo"
|
50 |
And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "todo"
|
Línea 64... |
Línea 64... |
64 |
And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "done"
|
64 |
And the "Spend at least 3 secs on this activity" completion condition of "Music history" is displayed as "done"
|
65 |
And the "Go through the activity to the end" completion condition of "Music history" is displayed as "done"
|
65 |
And the "Go through the activity to the end" completion condition of "Music history" is displayed as "done"
|
66 |
And the "Receive a grade" completion condition of "Music history" is displayed as "done"
|
66 |
And the "Receive a grade" completion condition of "Music history" is displayed as "done"
|
Línea 67... |
Línea 67... |
67 |
|
67 |
|
68 |
@javascript
|
68 |
@javascript
|
69 |
Scenario: Use manual completion
|
69 |
Scenario: A student can manually mark the lesson activity as done but a teacher cannot
|
70 |
Given I am on the "Music history" "lesson activity editing" page logged in as teacher1
|
70 |
Given I am on the "Music history" "lesson activity editing" page logged in as teacher1
|
71 |
And I expand all fieldsets
|
71 |
And I expand all fieldsets
|
72 |
And I set the field "Students must manually mark the activity as done" to "1"
|
72 |
And I set the field "Students must manually mark the activity as done" to "1"
|
73 |
And I press "Save and display"
|
73 |
And I press "Save and display"
|