| Línea 53... |
Línea 53... |
| 53 |
And I log in as "teacher1"
|
53 |
And I log in as "teacher1"
|
| 54 |
When I import "Course 1" course into "Course 2" course using this options:
|
54 |
When I import "Course 1" course into "Course 2" course using this options:
|
| 55 |
| Initial | Include permission overrides | 0 |
|
55 |
| Initial | Include permission overrides | 0 |
|
| 56 |
And I am on the "Course 2" "permissions" page
|
56 |
And I am on the "Course 2" "permissions" page
|
| 57 |
Then I should see "Non-editing teacher (0)"
|
57 |
Then I should see "Non-editing teacher (0)"
|
| - |
|
58 |
|
| - |
|
59 |
Scenario: Import course badges to another course
|
| - |
|
60 |
Given I log in as "teacher1"
|
| - |
|
61 |
And the following "core_badges > Badges" exist:
|
| - |
|
62 |
| name | course | description | image | status | type |
|
| - |
|
63 |
| Published course badge | C1 | Badge description | badges/tests/behat/badge.png | active | 2 |
|
| - |
|
64 |
| Unpublished course badge | C1 | Badge description | badges/tests/behat/badge.png | 0 | 2 |
|
| - |
|
65 |
| Unpublished without criteria course badge | C1 | Badge description | badges/tests/behat/badge.png | 0 | 2 |
|
| - |
|
66 |
And the following "core_badges > Criterias" exist:
|
| - |
|
67 |
| badge | role |
|
| - |
|
68 |
| Published course badge | editingteacher |
|
| - |
|
69 |
| Unpublished course badge | editingteacher |
|
| - |
|
70 |
When I import "Course 1" course into "Course 2" course using this options:
|
| - |
|
71 |
| Initial | Include badges | 1 |
|
| - |
|
72 |
And I navigate to "Badges" in current page administration
|
| - |
|
73 |
Then I should see "Published course badge"
|
| - |
|
74 |
And I should see "Unpublished course badge"
|
| - |
|
75 |
And I should see "Unpublished without criteria course badge"
|
| - |
|
76 |
# Badges exist and the criteria have been restored too.
|
| - |
|
77 |
And ".no-criteria-set" "css_element" should not exist in the "Published course badge" "table_row"
|
| - |
|
78 |
And ".no-criteria-set" "css_element" should not exist in the "Unpublished course badge" "table_row"
|
| - |
|
79 |
And ".no-criteria-set" "css_element" should exist in the "Unpublished without criteria course badge" "table_row"
|
| - |
|
80 |
|
| - |
|
81 |
Scenario: Import process should not include badges by default
|
| - |
|
82 |
Given I log in as "teacher1"
|
| - |
|
83 |
And the following "core_badges > Badges" exist:
|
| - |
|
84 |
| name | course | description | image | status | type |
|
| - |
|
85 |
| Published course badge | C1 | Badge description | badges/tests/behat/badge.png | active | 2 |
|
| - |
|
86 |
And the following "core_badges > Criterias" exist:
|
| - |
|
87 |
| badge | role |
|
| - |
|
88 |
| Published course badge | editingteacher |
|
| - |
|
89 |
When I import "Course 1" course into "Course 2" course using this options:
|
| - |
|
90 |
| Initial | Include badges | 0 |
|
| - |
|
91 |
And I navigate to "Badges" in current page administration
|
| - |
|
92 |
Then I should not see "Published course badge"
|