Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@qtype @qtype_ddimageortext @_switch_windowFeature: Preview a drag-drop onto image questionAs a teacherIn order to check my drag-drop onto image 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 | ddimageortext | Drag onto image | xsection || Test questions | ddimageortext | Drag to mathjax equation | mathjax |@javascript @_bug_phantomjsScenario: Preview a question using the mouse.When I am on the "Drag onto image" "core_question > preview" page logged in as teacherAnd I wait "2" seconds# Odd, but the <br>s go to nothing, not a space.And I drag "mountainbelt" to place "1" in the drag and drop onto image questionAnd I drag "continentalshelf" to place "2" in the drag and drop onto image questionAnd I drag "oceantrench" to place "3" in the drag and drop onto image questionAnd I drag "abyssalplain" to place "4" in the drag and drop onto image questionAnd I drag "continentalslope" to place "5" in the drag and drop onto image questionAnd I drag "continentalrise" to place "6" in the drag and drop onto image questionAnd I drag "islandarc" to place "7" in the drag and drop onto image questionAnd I drag "mid-oceanridge" to place "8" in the drag and drop onto image questionAnd I press "Submit and finish"Then the state of "Identify the features" question is shown as "Correct"And I should see "Mark 1.00 out of 1.00"@javascriptScenario: Preview a question using the keyboard.When I am on the "Drag onto image" "core_question > preview" page logged in as teacher# Increase window size and wait 2 seconds to ensure elements are placed properly by js.And I type " " on place "1" in the drag and drop onto image questionAnd I type " " on place "2" in the drag and drop onto image questionAnd I type " " on place "3" in the drag and drop onto image questionAnd I type " " on place "4" in the drag and drop onto image questionAnd I type " " on place "5" in the drag and drop onto image questionAnd I type " " on place "6" in the drag and drop onto image questionAnd I type " " on place "7" in the drag and drop onto image questionAnd I type " " on place "8" in the drag and drop onto image questionAnd I press "Submit and finish"Then the state of "Identify the features" question is shown as "Correct"And I should see "Mark 1.00 out of 1.00"@javascriptScenario: Preview a drag-drop into image 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"