Commit | Line | Data |
---|---|---|
3b504829 | 1 | @ou @ou_vle @qtype @qtype_ddimageortext |
42865c84 TH |
2 | Feature: Test importing drag and drop onto image questions |
3 | As a teacher | |
4 | In order to reuse drag and drop onto image questions | |
5 | I need to import them | |
3b504829 K |
6 | |
7 | Background: | |
42865c84 | 8 | Given the following "users" exist: |
3b504829 | 9 | | username | firstname | lastname | email | |
42865c84 | 10 | | teacher1 | T1 | Teacher1 | teacher1@example.com | |
3b504829 K |
11 | And the following "courses" exist: |
12 | | fullname | shortname | category | | |
13 | | Course 1 | C1 | 0 | | |
14 | And the following "course enrolments" exist: | |
15 | | user | course | role | | |
16 | | teacher1 | C1 | editingteacher | | |
3b504829 K |
17 | And I log in as "teacher1" |
18 | And I follow "Course 1" | |
19 | ||
42865c84 TH |
20 | @javascript @_file_upload |
21 | Scenario: import drag and drop onto image question. | |
3b504829 K |
22 | When I navigate to "Import" node in "Course administration > Question bank" |
23 | And I set the field "id_format_xml" to "1" | |
24 | And I upload "question/type/ddimageortext/tests/fixtures/testquestion.moodle.xml" file to "Import" filemanager | |
25 | And I press "id_submitbutton" | |
26 | Then I should see "Parsing questions from import file." | |
27 | And I should see "Importing 1 questions from file" | |
28 | And I should see "Identify the features in this cross-section by dragging the labels into the boxes." | |
29 | And I press "Continue" | |
30 | And I should see "Imported Drag and drop onto image 001" |