Línea 124... |
Línea 124... |
124 |
And I click on "Edit" "link" in the "Cohort 1" "table_row"
|
124 |
And I click on "Edit" "link" in the "Cohort 1" "table_row"
|
125 |
And the field "Assign role" matches value "Student"
|
125 |
And the field "Assign role" matches value "Student"
|
126 |
And I press "Cancel"
|
126 |
And I press "Cancel"
|
127 |
And I click on "Edit" "link" in the "Cohort 4" "table_row"
|
127 |
And I click on "Edit" "link" in the "Cohort 4" "table_row"
|
128 |
And the field "Assign role" matches value "Non-editing teacher"
|
128 |
And the field "Assign role" matches value "Non-editing teacher"
|
- |
|
129 |
|
- |
|
130 |
@javascript
|
- |
|
131 |
Scenario: Uploading a cohort enrolment method with a non-default role applies only the specified role
|
- |
|
132 |
Given the following "users" exist:
|
- |
|
133 |
| username | firstname | lastname | email |
|
- |
|
134 |
| t1 | Teacher | 1 | s1@example.com |
|
- |
|
135 |
And the following "cohort members" exist:
|
- |
|
136 |
| user | cohort |
|
- |
|
137 |
| t1 | CV4 |
|
- |
|
138 |
And I upload "admin/tool/uploadcourse/tests/fixtures/enrolment_cohort_multiple.csv" file to "File" filemanager
|
- |
|
139 |
And I click on "Preview" "button"
|
- |
|
140 |
And I click on "Upload courses" "button"
|
- |
|
141 |
When I am on the "Course 1" "course" page
|
- |
|
142 |
And I navigate to course participants
|
- |
|
143 |
Then I should see "Non-editing teacher" in the "Teacher 1" "table_row"
|
- |
|
144 |
And I should not see "Student" in the "Teacher 1" "table_row"
|