Proyectos de Subversion Moodle

Rev

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

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