Commit | Line | Data |
---|---|---|
d60ae732 DP |
1 | @core_enrol |
2 | Feature: Manage enrollments from participants page | |
3 | In order to manage course participants | |
4 | As a teacher | |
5 | In need to get to the enrolment page from the course participants page | |
6 | ||
7 | Background: | |
8 | Given the following "users" exist: | |
9 | | username | firstname | lastname | email | | |
10 | | student1 | Student | 1 | student1@example.com | | |
11 | | student2 | Student | 2 | student2@example.com | | |
12 | | teacher1 | teacher | 1 | teacher1@example.com | | |
13 | And the following "courses" exist: | |
14 | | fullname | shortname | format | | |
15 | | Course 1 | C1 | topics | | |
16 | And the following "course enrolments" exist: | |
17 | | user | course | role | | |
18 | | student1 | C1 | student | | |
19 | | student2 | C1 | student | | |
20 | | teacher1 | C1 | editingteacher | | |
21 | And I log in as "teacher1" | |
22 | And I follow "Course 1" | |
23 | And I navigate to "Participants" node in "Current course > C1" | |
24 | ||
25 | @javascript | |
26 | Scenario: Check the participants link when "All partipants" selected | |
27 | Given I set the field "roleid" to "All participants" | |
28 | When I follow "Edit" | |
29 | Then I should see "Enrolled users" in the "h2" "css_element" | |
30 | And the field "Role" matches value "All" | |
31 | ||
32 | @javascript | |
33 | Scenario: Check the participants link when "Student" selected | |
34 | Given I set the field "roleid" to "Student" | |
35 | When I follow "Edit" | |
36 | Then I should see "Enrolled users" in the "h2" "css_element" | |
37 | And the field "Role" matches value "Student" |