You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.8 KiB
39 lines
1.8 KiB
@core @core_completion
|
|
Feature: Allow students to manually mark an activity as complete
|
|
In order to let students decide when an activity is completed
|
|
As a teacher
|
|
I need to allow students to mark activities as completed
|
|
|
|
@javascript
|
|
Scenario: Mark an activity as completed
|
|
Given the following "courses" exist:
|
|
| fullname | shortname | category |
|
|
| Course 1 | C1 | 0 |
|
|
And the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| teacher1 | Teacher | Frist | teacher1@example.com |
|
|
| student1 | Student | First | student1@example.com |
|
|
And the following "course enrolments" exist:
|
|
| user | course | role |
|
|
| teacher1 | C1 | editingteacher |
|
|
| student1 | C1 | student |
|
|
And I log in as "teacher1"
|
|
And I am on "Course 1" course homepage with editing mode on
|
|
And I navigate to "Edit settings" in current page administration
|
|
And I set the following fields to these values:
|
|
| Enable completion tracking | Yes |
|
|
And I press "Save and display"
|
|
And I add a "Forum" to section "1" and I fill the form with:
|
|
| Forum name | Test forum name |
|
|
| Description | Test forum description |
|
|
| Completion tracking | Students can manually mark the activity as completed |
|
|
And "Student First" user has not completed "Test forum name" activity
|
|
And I log out
|
|
And I log in as "student1"
|
|
And I am on "Course 1" course homepage
|
|
When I click on "Not completed: Test forum name. Select to mark as complete." "icon"
|
|
Then the "Test forum name" "forum" activity with "manual" completion should be marked as complete
|
|
And I log out
|
|
And I log in as "teacher1"
|
|
And I am on "Course 1" course homepage
|
|
And "Student First" user has completed "Test forum name" activity
|
|
|