Proyectos de Subversion Moodle

Rev

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

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