Línea 172... |
Línea 172... |
172 |
And "Add conditions" "link" should exist in the "Activity sample" "core_courseformat > Activity completion"
|
172 |
And "Add conditions" "link" should exist in the "Activity sample" "core_courseformat > Activity completion"
|
173 |
And I log out
|
173 |
And I log out
|
174 |
# Student view.
|
174 |
# Student view.
|
175 |
And I am on the "C1" "Course" page logged in as "student1"
|
175 |
And I am on the "C1" "Course" page logged in as "student1"
|
176 |
And "There are no completion conditions set for this activity." "text" should exist in the "Activity sample" "core_courseformat > Activity completion"
|
176 |
And "There are no completion conditions set for this activity." "text" should exist in the "Activity sample" "core_courseformat > Activity completion"
|
- |
|
177 |
|
- |
|
178 |
@javascript
|
- |
|
179 |
Scenario: Completion edit button should be hidden in bulk editing
|
- |
|
180 |
Given the following "activity" exists:
|
- |
|
181 |
| activity | assign |
|
- |
|
182 |
| name | Activity sample |
|
- |
|
183 |
| course | C1 |
|
- |
|
184 |
| completion | 2 |
|
- |
|
185 |
| completionview | 1 |
|
- |
|
186 |
And I log in as "teacher1"
|
- |
|
187 |
And I am on "C1" course homepage with editing mode on
|
- |
|
188 |
And I click on "Completion" "button"
|
- |
|
189 |
And "Edit conditions" "link" in the "Activity sample" "activity" should be visible
|
- |
|
190 |
When I click on "Bulk actions" "button"
|
- |
|
191 |
And I click on "Completion" "button"
|
- |
|
192 |
Then "Edit conditions" "link" in the "Activity sample" "activity" should not be visible
|