You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
@mod @mod_lesson
|
|
Feature: In a lesson activity, teacher can import blackboard fill in the blank question
|
|
As a teacher
|
|
I need to import a fill in the blank question made in Blackboard in a lesson
|
|
|
|
@javascript @_file_upload
|
|
Scenario: Import fill in the blank question in a lesson
|
|
Given the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
| student1 | Student | 1 | student1@example.com |
|
|
And the following "courses" exist:
|
|
| fullname | shortname | category |
|
|
| Course 1 | C1 | 0 |
|
|
And the following "course enrolments" exist:
|
|
| user | course | role |
|
|
| teacher1 | C1 | editingteacher |
|
|
| student1 | C1 | student |
|
|
And I log in as "teacher1"
|
|
When I am on "Course 1" course homepage with editing mode on
|
|
And I add a "Lesson" to section "1" and I fill the form with:
|
|
| Name | Test lesson name |
|
|
| Description | Test lesson description |
|
|
And I follow "Test lesson name"
|
|
And I follow "Import questions"
|
|
And I set the field "File format" to "Blackboard"
|
|
And I upload "mod/lesson/tests/fixtures/sample_blackboard_fib_qti.dat" file to "Upload" filemanager
|
|
And I press "Import"
|
|
Then I should see "Importing 1 questions"
|
|
And I should see "Name an amphibian: __________"
|
|
And I press "Continue"
|
|
And I should not see "__________"
|
|
And I should not see "Your answer"
|
|
And I set the field "id_answer" to "frog"
|
|
And I press "Submit"
|
|
And I should see "Your answer : frog"
|
|
And I should see "A frog is an amphibian"
|
|
And I press "Continue"
|
|
And I should see "Congratulations - end of lesson reached"
|