Línea 169... |
Línea 169... |
169 |
And the following "course enrolments" exist:
|
169 |
And the following "course enrolments" exist:
|
170 |
| user | course | role |
|
170 |
| user | course | role |
|
171 |
| teacher1 | C2 | editingteacher |
|
171 |
| teacher1 | C2 | editingteacher |
|
172 |
And I log in as "teacher1"
|
172 |
And I log in as "teacher1"
|
173 |
And I am on "Course 1" course homepage with editing mode on
|
173 |
And I am on "Course 1" course homepage with editing mode on
|
174 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
174 |
And I open the activity chooser
|
175 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
175 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
176 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
176 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
177 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
177 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
178 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
178 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
179 |
And I navigate to "LTI External tools" in current page administration
|
179 |
And I navigate to "LTI External tools" in current page administration
|
180 |
And I should not see "Teaching Tool 3"
|
180 |
And I should not see "Teaching Tool 3"
|
181 |
And I click on "Don't show in activity chooser" "field" in the "Teaching Tool 1" "table_row"
|
181 |
And I click on "Don't show in activity chooser" "field" in the "Teaching Tool 1" "table_row"
|
182 |
And I click on "Show in activity chooser" "field" in the "Teaching Tool 2" "table_row"
|
182 |
And I click on "Show in activity chooser" "field" in the "Teaching Tool 2" "table_row"
|
183 |
And I am on "Course 1" course homepage
|
183 |
And I am on "Course 1" course homepage
|
184 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
184 |
And I open the activity chooser
|
185 |
And I should not see "Teaching Tool 1" in the ".modal-body" "css_element"
|
185 |
And I should not see "Teaching Tool 1" in the ".modal-body" "css_element"
|
186 |
And I should see "Teaching Tool 2" in the ".modal-body" "css_element"
|
186 |
And I should see "Teaching Tool 2" in the ".modal-body" "css_element"
|
187 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
187 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
188 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
188 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
Línea 189... |
Línea 189... |
189 |
|
189 |
|
190 |
# Should not affect other courses.
|
190 |
# Should not affect other courses.
|
191 |
And I am on "Course 2" course homepage
|
191 |
And I am on "Course 2" course homepage
|
192 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
192 |
And I open the activity chooser
|
193 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
193 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
194 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
194 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
195 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
195 |
And I should not see "Teaching Tool 3" in the ".modal-body" "css_element"
|
Línea 196... |
Línea 196... |
196 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
196 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
197 |
|
197 |
|
198 |
And I am on "Course 1" course homepage
|
198 |
And I am on "Course 1" course homepage
|
199 |
And I navigate to "LTI External tools" in current page administration
|
199 |
And I navigate to "LTI External tools" in current page administration
|
200 |
And I click on "Show in activity chooser" "field" in the "Teaching Tool 1" "table_row"
|
200 |
And I click on "Show in activity chooser" "field" in the "Teaching Tool 1" "table_row"
|
201 |
And I click on "Don't show in activity chooser" "field" in the "Teaching Tool 2" "table_row"
|
201 |
And I click on "Don't show in activity chooser" "field" in the "Teaching Tool 2" "table_row"
|
202 |
And I am on "Course 1" course homepage
|
202 |
And I am on "Course 1" course homepage
|
203 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
203 |
And I open the activity chooser
|
204 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
204 |
And I should see "Teaching Tool 1" in the ".modal-body" "css_element"
|
Línea 205... |
Línea 205... |
205 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
205 |
And I should not see "Teaching Tool 2" in the ".modal-body" "css_element"
|
Línea 219... |
Línea 219... |
219 |
| name | baseurl | course | coursevisible |
|
219 |
| name | baseurl | course | coursevisible |
|
220 |
| Course Tool 1 | /mod/lti/tests/fixtures/tool_provider.php | C1 | 2 |
|
220 |
| Course Tool 1 | /mod/lti/tests/fixtures/tool_provider.php | C1 | 2 |
|
221 |
| Course Tool 2 | /mod/lti/tests/fixtures/tool_provider.php | C1 | 1 |
|
221 |
| Course Tool 2 | /mod/lti/tests/fixtures/tool_provider.php | C1 | 1 |
|
222 |
And I log in as "teacher1"
|
222 |
And I log in as "teacher1"
|
223 |
And I am on "Course 1" course homepage with editing mode on
|
223 |
And I am on "Course 1" course homepage with editing mode on
|
224 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
224 |
And I open the activity chooser
|
225 |
And I should see "Course Tool 1" in the ".modal-body" "css_element"
|
225 |
And I should see "Course Tool 1" in the ".modal-body" "css_element"
|
226 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
226 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
227 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
227 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
228 |
And I navigate to "LTI External tools" in current page administration
|
228 |
And I navigate to "LTI External tools" in current page administration
|
229 |
And I click on "Don't show in activity chooser" "field" in the "Course Tool 1" "table_row"
|
229 |
And I click on "Don't show in activity chooser" "field" in the "Course Tool 1" "table_row"
|
230 |
And I click on "Show in activity chooser" "field" in the "Course Tool 2" "table_row"
|
230 |
And I click on "Show in activity chooser" "field" in the "Course Tool 2" "table_row"
|
231 |
And I am on "Course 1" course homepage
|
231 |
And I am on "Course 1" course homepage
|
232 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
232 |
And I open the activity chooser
|
233 |
And I should not see "Course Tool 1" in the ".modal-body" "css_element"
|
233 |
And I should not see "Course Tool 1" in the ".modal-body" "css_element"
|
234 |
And I should see "Course Tool 2" in the ".modal-body" "css_element"
|
234 |
And I should see "Course Tool 2" in the ".modal-body" "css_element"
|
235 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
235 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
236 |
And I navigate to "LTI External tools" in current page administration
|
236 |
And I navigate to "LTI External tools" in current page administration
|
237 |
And I click on "Show in activity chooser" "field" in the "Course Tool 1" "table_row"
|
237 |
And I click on "Show in activity chooser" "field" in the "Course Tool 1" "table_row"
|
238 |
And I click on "Don't show in activity chooser" "field" in the "Course Tool 2" "table_row"
|
238 |
And I click on "Don't show in activity chooser" "field" in the "Course Tool 2" "table_row"
|
239 |
And I am on "Course 1" course homepage
|
239 |
And I am on "Course 1" course homepage
|
240 |
And I click on "Add an activity or resource" "button" in the "New section" "section"
|
240 |
And I open the activity chooser
|
241 |
And I should see "Course Tool 1" in the ".modal-body" "css_element"
|
241 |
And I should see "Course Tool 1" in the ".modal-body" "css_element"
|
242 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
242 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
Línea 243... |
Línea 243... |
243 |
|
243 |
|
244 |
When the following "role capability" exists:
|
244 |
When the following "role capability" exists:
|
Línea 277... |
Línea 277... |
277 |
When I backup "Course 1" course using this options:
|
277 |
When I backup "Course 1" course using this options:
|
278 |
| Confirmation | Filename | test_backup.mbz |
|
278 |
| Confirmation | Filename | test_backup.mbz |
|
279 |
And I restore "test_backup.mbz" backup into a new course using this options:
|
279 |
And I restore "test_backup.mbz" backup into a new course using this options:
|
280 |
| Schema | Course name | Restored course |
|
280 |
| Schema | Course name | Restored course |
|
281 |
And I should see "Restored course"
|
281 |
And I should see "Restored course"
|
282 |
And I click on "Add an activity or resource" "button" in the "General" "section"
|
282 |
And I open the activity chooser
|
283 |
Then I should not see "Teaching Tool 1" in the ".modal-body" "css_element"
|
283 |
Then I should not see "Teaching Tool 1" in the ".modal-body" "css_element"
|
284 |
And I should see "Teaching Tool 2" in the ".modal-body" "css_element"
|
284 |
And I should see "Teaching Tool 2" in the ".modal-body" "css_element"
|
285 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
285 |
And I should not see "Course Tool 2" in the ".modal-body" "css_element"
|
286 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
286 |
And I click on "Close" "button" in the ".modal-dialog" "css_element"
|
287 |
And I navigate to "LTI External tools" in current page administration
|
287 |
And I navigate to "LTI External tools" in current page administration
|