| Línea 253... |
Línea 253... |
| 253 |
| Confirmation | Filename | test_backup.mbz |
|
253 |
| Confirmation | Filename | test_backup.mbz |
|
| 254 |
When I restore "test_backup.mbz" backup into a new course using this options:
|
254 |
When I restore "test_backup.mbz" backup into a new course using this options:
|
| 255 |
| Settings | Include permission overrides | 0 |
|
255 |
| Settings | Include permission overrides | 0 |
|
| 256 |
Then I am on the "Course 1 copy 1" "permissions" page
|
256 |
Then I am on the "Course 1 copy 1" "permissions" page
|
| 257 |
And I should see "Non-editing teacher (0)"
|
257 |
And I should see "Non-editing teacher (0)"
|
| - |
|
258 |
|
| - |
|
259 |
@javascript @core_badges
|
| - |
|
260 |
Scenario Outline: Restore course badges
|
| - |
|
261 |
Given the following "core_badges > Badges" exist:
|
| - |
|
262 |
| name | course | description | image | status | type |
|
| - |
|
263 |
| Published course badge | C1 | Badge description | badges/tests/behat/badge.png | active | 2 |
|
| - |
|
264 |
| Unpublished course badge | C1 | Badge description | badges/tests/behat/badge.png | 0 | 2 |
|
| - |
|
265 |
| Unpublished without criteria course badge | C1 | Badge description | badges/tests/behat/badge.png | 0 | 2 |
|
| - |
|
266 |
And the following "core_badges > Criterias" exist:
|
| - |
|
267 |
| badge | role |
|
| - |
|
268 |
| Published course badge | editingteacher |
|
| - |
|
269 |
| Unpublished course badge | editingteacher |
|
| - |
|
270 |
And I backup "Course 1" course using this options:
|
| - |
|
271 |
| Initial | Include badges | 1 |
|
| - |
|
272 |
| Initial | Include activities and resources | <includeactivities> |
|
| - |
|
273 |
| Initial | Include enrolled users | 0 |
|
| - |
|
274 |
| Initial | Include blocks | 0 |
|
| - |
|
275 |
| Initial | Include files | 0 |
|
| - |
|
276 |
| Initial | Include filters | 0 |
|
| - |
|
277 |
| Initial | Include calendar events | 0 |
|
| - |
|
278 |
| Initial | Include groups and groupings | 0 |
|
| - |
|
279 |
| Initial | Include competencies | 0 |
|
| - |
|
280 |
| Initial | Include custom fields | 0 |
|
| - |
|
281 |
| Initial | Include calendar events | 0 |
|
| - |
|
282 |
| Initial | Include content bank content | 0 |
|
| - |
|
283 |
| Initial | Include legacy course files | 0 |
|
| - |
|
284 |
| Confirmation | Filename | test_backup.mbz |
|
| - |
|
285 |
When I restore "test_backup.mbz" backup into a new course using this options:
|
| - |
|
286 |
| Settings | Include badges | 1 |
|
| - |
|
287 |
And I navigate to "Badges" in current page administration
|
| - |
|
288 |
Then I should see "Published course badge"
|
| - |
|
289 |
And I should see "Unpublished course badge"
|
| - |
|
290 |
And I should see "Unpublished without criteria course badge"
|
| - |
|
291 |
# If activities were included, the criteria have been restored too; otherwise no criteria have been set up for badges.
|
| - |
|
292 |
And ".no-criteria-set" "css_element" <shouldornotexist> in the "Published course badge" "table_row"
|
| - |
|
293 |
And ".no-criteria-set" "css_element" <shouldornotexist> in the "Unpublished course badge" "table_row"
|
| - |
|
294 |
And ".no-criteria-set" "css_element" should exist in the "Unpublished without criteria course badge" "table_row"
|
| - |
|
295 |
|
| - |
|
296 |
Examples:
|
| - |
|
297 |
| includeactivities | shouldornotexist |
|
| - |
|
298 |
| 0 | should exist |
|
| - |
|
299 |
| 1 | should not exist |
|