| Línea 18... |
Línea 18... |
| 18 |
And I should see "900" in the "mod_lesson" "table_row"
|
18 |
And I should see "900" in the "mod_lesson" "table_row"
|
| 19 |
When I click on "Apply" "button"
|
19 |
When I click on "Apply" "button"
|
| 20 |
And I should see "Setting changes"
|
20 |
And I should see "Setting changes"
|
| 21 |
And I should see "Unchanged settings"
|
21 |
And I should see "Unchanged settings"
|
| 22 |
And I click on "Continue" "button"
|
22 |
And I click on "Continue" "button"
|
| 23 |
Then I should see "Imported preset" in the "Site admin presets table" "table"
|
23 |
Then I should see "Imported preset" in the "reportbuilder-table" "table"
|
| 24 |
And I navigate to "Advanced features" in site administration
|
24 |
And I navigate to "Advanced features" in site administration
|
| 25 |
And the following fields match these values:
|
25 |
And the following fields match these values:
|
| 26 |
| Enable portfolios | 1 |
|
26 |
| Enable portfolios | 1 |
|
| 27 |
And I navigate to "Plugins > Activity modules > Lesson" in site administration
|
27 |
And I navigate to "Plugins > Activity modules > Lesson" in site administration
|
| 28 |
And the following fields match these values:
|
28 |
And the following fields match these values:
|
| Línea 35... |
Línea 35... |
| 35 |
And I click on "Import" "button"
|
35 |
And I click on "Import" "button"
|
| 36 |
And I should not see "Imported preset"
|
36 |
And I should not see "Imported preset"
|
| 37 |
And I should see "Renamed preset"
|
37 |
And I should see "Renamed preset"
|
| 38 |
When I click on "Apply" "button"
|
38 |
When I click on "Apply" "button"
|
| 39 |
And I click on "Continue" "button"
|
39 |
And I click on "Continue" "button"
|
| 40 |
Then I should not see "Imported preset" in the "Site admin presets table" "table"
|
40 |
Then I should not see "Imported preset" in the "reportbuilder-table" "table"
|
| 41 |
And I should see "Renamed preset" in the "Site admin presets table" "table"
|
41 |
And I should see "Renamed preset" in the "reportbuilder-table" "table"
|
| Línea 42... |
Línea 42... |
| 42 |
|
42 |
|
| 43 |
Scenario: Import settings from an invalid XML file
|
43 |
Scenario: Import settings from an invalid XML file
|
| 44 |
Given I set the field "Name" to "Renamed preset"
|
44 |
Given I set the field "Name" to "Renamed preset"
|
| 45 |
And I upload "admin/presets/tests/fixtures/invalid_xml_file.xml" file to "Select file" filemanager
|
45 |
And I upload "admin/presets/tests/fixtures/invalid_xml_file.xml" file to "Select file" filemanager
|
| Línea 69... |
Línea 69... |
| 69 |
And I should see "Enable portfolios" in the "core" "table_row"
|
69 |
And I should see "Enable portfolios" in the "core" "table_row"
|
| 70 |
And I should not see "No valid settings"
|
70 |
And I should not see "No valid settings"
|
| 71 |
And I click on "Apply" "button"
|
71 |
And I click on "Apply" "button"
|
| 72 |
And I should see "Setting changes"
|
72 |
And I should see "Setting changes"
|
| 73 |
And I click on "Continue" "button"
|
73 |
And I click on "Continue" "button"
|
| 74 |
Then I should see "Renamed preset" in the "Site admin presets table" "table"
|
74 |
Then I should see "Renamed preset" in the "reportbuilder-table" "table"
|
| 75 |
And I navigate to "Advanced features" in site administration
|
75 |
And I navigate to "Advanced features" in site administration
|
| 76 |
And the following fields match these values:
|
76 |
And the following fields match these values:
|
| 77 |
| Enable portfolios | 1 |
|
77 |
| Enable portfolios | 1 |
|