Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@qtype @qtype_ddwtos @_switch_windowFeature: Preview a drag-drop into text questionAs a teacherIn order to check my drag-drop into text questions will work for studentsI need to preview themBackground:Given the following "users" exist:| username || teacher |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher | C1 | editingteacher |And the following "question categories" exist:| contextlevel | reference | name || Course | C1 | Test questions |And the following "questions" exist:| questioncategory | qtype | name | template || Test questions | ddwtos | Drag to text | fox || Test questions | ddwtos | Drag to text infinite | infinite || Test questions | ddwtos | Drag to mathjax equation | mathjax |@javascript @_bug_phantomjsScenario: Preview a question using the mouse.When I am on the "Drag to text" "core_question > preview" page logged in as teacherAnd I should see "quick" in the home area of drag and drop into text questionAnd I should see "slow" in the home area of drag and drop into text questionAnd I drag "quick" to space "1" in the drag and drop into text questionAnd I drag "fox" to space "2" in the drag and drop into text questionAnd I drag "assiduous" to space "3" in the drag and drop into text questionAnd I drag "slow" to placed drag "1" in the drag and drop into text questionAnd I should see "quick" in the home area of drag and drop into text questionAnd I drag "quick" to placed drag "1" in the drag and drop into text questionAnd I should see "slow" in the home area of drag and drop into text questionAnd I press "Submit and finish"Then the state of "The" question is shown as "Partially correct"And I should see "Mark 0.67 out of 1.00"@javascriptScenario: Preview a question using the keyboard & submit incomplete.When I am on the "Drag to text" "core_question > preview" page logged in as teacherAnd I type " " into space "1" in the drag and drop onto image questionAnd I type " " into space "2" in the drag and drop onto image questionAnd I type " " into space "3" in the drag and drop onto image questionAnd I press "Save"Then the state of "The" question is shown as "Incomplete answer"And I should see "Please put an answer in each box."@javascriptScenario: Preview a question using the keyboard.When I am on the "Drag to text" "core_question > preview" page logged in as teacherAnd I type " " into space "1" in the drag and drop onto image questionAnd I type " " into space "2" in the drag and drop onto image questionAnd I type " " into space "3" in the drag and drop onto image questionAnd I press "Submit and finish"Then the state of "The" question is shown as "Incorrect"And I should see "Mark 0.00 out of 1.00"@javascriptScenario: Preview a question that uses strange group numbers using the keyboard.Given the following "questions" exist:| questioncategory | qtype | name | template || Test questions | ddwtos | Funny groups | oddgroups |When I am on the "Funny groups" "core_question > preview" page logged in as teacherAnd I type " " into space "1" in the drag and drop onto image questionAnd I type " " into space "2" in the drag and drop onto image questionAnd I type " " into space "3" in the drag and drop onto image questionAnd I press "Submit and finish"Then the state of "The" question is shown as "Correct"And I should see "Mark 1.00 out of 1.00"@javascriptScenario: Preview a infinite question.When I am on the "Drag to text infinite" "core_question > preview" page logged in as teacherAnd I press "Fill in correct responses"Then I should see "Option1" in the home area of drag and drop into text questionAnd I should see "Option2" in the home area of drag and drop into text questionAnd I should see "Option3" in the home area of drag and drop into text question@javascriptScenario: Preview a drag-drop into text question with mathjax question.Given the "mathjaxloader" filter is "on"And the "mathjaxloader" filter applies to "content and headings"And I am on the "Drag to mathjax equation" "core_question > preview" page logged in as teacherAnd I press "Fill in correct responses"When I press "Submit and finish"Then ".filter_mathjaxloader_equation" "css_element" should exist in the ".draghome" "css_element"