Línea 289... |
Línea 289... |
289 |
And I should see "New saved preset"
|
289 |
And I should see "New saved preset"
|
290 |
And I should see "Test field name"
|
290 |
And I should see "Test field name"
|
291 |
And I should see "This is a short text"
|
291 |
And I should see "This is a short text"
|
292 |
Then "Use this preset" "button" should exist
|
292 |
Then "Use this preset" "button" should exist
|
Línea 293... |
Línea -... |
293 |
|
- |
|
294 |
@javascript
|
293 |
|
295 |
Scenario: Teachers can export any saved preset
|
294 |
Scenario: Teachers can export any saved preset
|
296 |
Given I am on the "Mountain landscapes" "data activity" page logged in as teacher1
|
295 |
Given I am on the "Mountain landscapes" "data activity" page logged in as teacher1
|
297 |
When I follow "Presets"
|
296 |
When I follow "Presets"
|
298 |
# Plugin presets can't be exported.
|
297 |
# Plugin presets can't be exported.
|
299 |
And I should not see "Actions" in the "Image gallery" "table_row"
|
298 |
And I should not see "Actions" in the "Image gallery" "table_row"
|
300 |
# The teacher should be able to export any saved preset.
|
299 |
# The teacher should be able to export any saved preset.
|
301 |
And I open the action menu in "Saved preset by teacher1" "table_row"
|
300 |
And I open the action menu in "Saved preset by teacher1" "table_row"
|
302 |
Then I should see "Export"
|
301 |
Then I should see "Export"
|
- |
|
302 |
And following "Export" in the "Saved preset by teacher1" "table_row" should download a file that:
|
303 |
And following "Export" "link" in the "Saved preset by teacher1" "table_row" should download between "1" and "5000" bytes
|
303 |
| Contains file in zip | preset.xml |
|
304 |
And I open the action menu in "Saved preset 1" "table_row"
|
304 |
And I open the action menu in "Saved preset 1" "table_row"
|
305 |
And I should see "Export"
|
305 |
And I should see "Export"
|
- |
|
306 |
And following "Export" in the "Saved preset 1" "table_row" should download a file that:
|
Línea 306... |
Línea 307... |
306 |
And following "Export" "link" in the "Saved preset 1" "table_row" should download between "1" and "5000" bytes
|
307 |
| Contains file in zip | preset.xml |
|
307 |
|
308 |
|
308 |
@javascript @_file_upload
|
309 |
@javascript @_file_upload
|
309 |
Scenario Outline: Admins and Teachers can load a preset from a file
|
310 |
Scenario Outline: Admins and Teachers can load a preset from a file
|