| Línea 12... |
Línea 12... |
| 12 |
| username | firstname |
|
12 |
| username | firstname |
|
| 13 |
| teacher | Teacher |
|
13 |
| teacher | Teacher |
|
| 14 |
And the following "course enrolments" exist:
|
14 |
And the following "course enrolments" exist:
|
| 15 |
| user | course | role |
|
15 |
| user | course | role |
|
| 16 |
| teacher | C1 | editingteacher |
|
16 |
| teacher | C1 | editingteacher |
|
| - |
|
17 |
And the following "activities" exist:
|
| - |
|
18 |
| activity | name | course | idnumber |
|
| - |
|
19 |
| qbank | Qbank 1 | C1 | qbank1 |
|
| 17 |
And I am on the "Course 1" "core_question > course question import" page logged in as "teacher"
|
20 |
And I am on the "Qbank 1" "core_question > question import" page logged in as "teacher"
|
| Línea 18... |
Línea 21... |
| 18 |
|
21 |
|
| 19 |
@javascript @_file_upload
|
22 |
@javascript @_file_upload
|
| 20 |
Scenario: import some GIFT questions
|
23 |
Scenario: import some GIFT questions
|
| 21 |
When I set the field "id_format_gift" to "1"
|
24 |
When I set the field "id_format_gift" to "1"
|
| Línea 26... |
Línea 29... |
| 26 |
And I should see "What's between orange and green in the spectrum?"
|
29 |
And I should see "What's between orange and green in the spectrum?"
|
| 27 |
When I press "Continue"
|
30 |
When I press "Continue"
|
| 28 |
Then I should see "colours"
|
31 |
Then I should see "colours"
|
| Línea 29... |
Línea 32... |
| 29 |
|
32 |
|
| 30 |
# Now export again.
|
33 |
# Now export again.
|
| 31 |
And I am on the "Course 1" "core_question > course question export" page
|
34 |
And I am on the "Qbank 1" "core_question > question export" page
|
| 32 |
And I set the field "id_format_gift" to "1"
|
35 |
And I set the field "id_format_gift" to "1"
|
| 33 |
And I press "Export questions to file"
|
36 |
And I press "Export questions to file"
|
| - |
|
37 |
And following "click here" should download a file that:
|
| - |
|
38 |
| Has mimetype | text/plain |
|
| Línea 34... |
Línea 39... |
| 34 |
And following "click here" should download between "1500" and "1800" bytes
|
39 |
| Contains text | What's between orange and green in the spectrum? |
|
| 35 |
|
40 |
|
| 36 |
@javascript @_file_upload
|
41 |
@javascript @_file_upload
|
| 37 |
Scenario: import a GIFT file which specifies the category
|
42 |
Scenario: import a GIFT file which specifies the category
|