forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-40241_master' of https://github.com/dmonllao/moodle
- Loading branch information
Showing
6 changed files
with
82 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@core @core_completion | ||
Feature: Allow teachers to manually mark users as complete when configured | ||
In order for teachers to mark students as complete | ||
As a teacher | ||
I need to be able to use the completion report mark complete functionality | ||
|
||
Scenario: Mark a student as complete using the completion report | ||
Given the following "courses" exist: | ||
| fullname | shortname | category | | ||
| Completion course | CC1 | 0 | | ||
And the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| student1 | Student | First | student1@example.com | | ||
| teacher1 | Teacher | First | teacher1@example.com | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| student1 | CC1 | student | | ||
| teacher1 | CC1 | editingteacher | | ||
And I log in as "admin" | ||
And I set the following administration settings values: | ||
| Enable completion tracking | 1 | | ||
And I am on homepage | ||
And I follow "Completion course" | ||
And completion tracking is "Enabled" in current course | ||
And I follow "Course completion" | ||
And I set the field "Teacher" to "1" | ||
And I press "Save changes" | ||
And I turn editing mode on | ||
And I add the "Course completion status" block | ||
And I log out | ||
And I log in as "student1" | ||
And I follow "Completion course" | ||
And I should see "Status: Not yet started" | ||
And I log out | ||
When I log in as "teacher1" | ||
And I follow "Completion course" | ||
And I follow "View course report" | ||
And I should see "Student First" | ||
And I follow "Click to mark user complete" | ||
And I trigger cron | ||
And I am on homepage | ||
And I log out | ||
Then I log in as "student1" | ||
And I follow "Completion course" | ||
And I should see "Status: Complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters