MDL-59437 behat: old "edit" cog to go to enrollments page is gone
[moodle.git] / enrol / tests / behat / manage_enrolments_from_participants.feature
CommitLineData
d60ae732
DP
1@core_enrol
2Feature: 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"
fdeeaff9 22 And I am on "Course 1" course homepage
e5287f9b 23 And I navigate to course participants
d60ae732 24
d60ae732 25 Scenario: Check the participants link when "All partipants" selected
c57542a8 26 Given I select "All participants" from the "roleid" singleselect
28fcc339 27 And I navigate to "Enrolled users" node in "Course administration > Users"
d60ae732
DP
28 Then I should see "Enrolled users" in the "h2" "css_element"
29 And the field "Role" matches value "All"
30
d60ae732 31 Scenario: Check the participants link when "Student" selected
c57542a8 32 Given I select "Student" from the "roleid" singleselect
28fcc339 33 And I navigate to "Enrolled users" node in "Course administration > Users"
d60ae732 34 Then I should see "Enrolled users" in the "h2" "css_element"
28fcc339 35 And the field "Role" matches value "All"