| Línea 23... |
Línea 23... |
| 23 |
|
23 |
|
| 24 |
Scenario: Export a Short answer question
|
24 |
Scenario: Export a Short answer question
|
| 25 |
When I am on the "Course 1" "core_question > course question export" page logged in as teacher
|
25 |
When I am on the "Course 1" "core_question > course question export" page logged in as teacher
|
| 26 |
And I set the field "id_format_xml" to "1"
|
26 |
And I set the field "id_format_xml" to "1"
|
| 27 |
And I press "Export questions to file"
|
27 |
And I press "Export questions to file"
|
| - |
|
28 |
Then following "click here" should download a file that:
|
| - |
|
29 |
| Has mimetype | text/xml |
|
| 28 |
Then following "click here" should download between "1200" and "1450" bytes
|
30 |
| Contains text in xml element | shortanswer-001 |
|
| 29 |
# If the download step is the last in the scenario then we can sometimes run
|
31 |
# If the download step is the last in the scenario then we can sometimes run
|
| 30 |
# into the situation where the download page causes a http redirect but behat
|
32 |
# into the situation where the download page causes a http redirect but behat
|
| 31 |
# has already conducted its reset (generating an error). By putting a logout
|
33 |
# has already conducted its reset (generating an error). By putting a logout
|
| 32 |
# step we avoid behat doing the reset until we are off that page.
|
34 |
# step we avoid behat doing the reset until we are off that page.
|