Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 
23
 
24
  Scenario: Export a Description question
24
  Scenario: Export a Description 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 "650" and "900" bytes
30
      | Contains text in xml element | description-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.