1 |
efrain |
1 |
@mod @mod_reengagement @javascript
|
|
|
2 |
Feature: Teachers can create reengagment activity
|
|
|
3 |
In order to trigger reengagements
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to create a reengagement
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Create Reengagment activity.
|
|
|
9 |
Given the following "courses" exist:
|
|
|
10 |
| fullname | shortname | summary | category | timecreated | timemodified |
|
|
|
11 |
| Course 1 | C1 | Prove the reengagement activity works | 0 | ##yesterday## | ##yesterday## |
|
|
|
12 |
And the following "users" exist:
|
|
|
13 |
| username | firstname | lastname | email |
|
|
|
14 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| course | user | role | timestart |
|
|
|
17 |
| C1 | teacher1 | editingteacher | ##yesterday## |
|
|
|
18 |
And I log in as "teacher1"
|
|
|
19 |
And I am on "Course 1" course homepage with editing mode on
|
|
|
20 |
And I add a "Reengagement" to section "1" and I fill the form with:
|
|
|
21 |
| Reengagement name | Reengagement test |
|
|
|
22 |
Then I should see "Reengagement test"
|