1 |
efrain |
1 |
@core @core_completion
|
|
|
2 |
Feature: Allow students to manually mark an activity as complete
|
|
|
3 |
In order to let students decide when an activity is completed
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to allow students to mark activities as completed
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Mark an activity as completed
|
|
|
9 |
Given the following "courses" exist:
|
|
|
10 |
| fullname | shortname | category | enablecompletion |
|
|
|
11 |
| Course 1 | C1 | 0 | 1 |
|
|
|
12 |
And the following "users" exist:
|
|
|
13 |
| username | firstname | lastname | email |
|
|
|
14 |
| teacher1 | Teacher | First | teacher1@example.com |
|
|
|
15 |
| student1 | Student | First | student1@example.com |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| teacher1 | C1 | editingteacher |
|
|
|
19 |
| student1 | C1 | student |
|
|
|
20 |
And the following "activity" exists:
|
|
|
21 |
| activity | forum |
|
|
|
22 |
| course | C1 |
|
|
|
23 |
| name | Test forum name |
|
|
|
24 |
| completion | 1 |
|
|
|
25 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
26 |
And "Student First" user has not completed "Test forum name" activity
|
|
|
27 |
And I am on the "Course 1" course page logged in as student1
|
|
|
28 |
When I toggle the manual completion state of "Test forum name"
|
|
|
29 |
Then the manual completion button of "Test forum name" is displayed as "Done"
|
|
|
30 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
31 |
And "Student First" user has completed "Test forum name" activity
|