[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @qtype @qtype_ddwtos @_switch_window 2 Feature: Preview a drag-drop into text question 3 As a teacher 4 In order to check my drag-drop into text questions will work for students 5 I need to preview them 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | T1 | Teacher1 | teacher1@moodle.com | 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 | 17 And the following "question categories" exist: 18 | contextlevel | reference | name | 19 | Course | C1 | Test questions | 20 And the following "questions" exist: 21 | questioncategory | qtype | name | template | 22 | Test questions | ddwtos | Drag to text | fox | 23 Given I log in as "teacher1" 24 And I follow "Course 1" 25 And I navigate to "Question bank" node in "Course administration" 26 27 @javascript @_bug_phantomjs 28 Scenario: Preview a question using the mouse. 29 When I click on "Preview" "link" in the "Drag to text" "table_row" 30 And I switch to "questionpreview" window 31 # Increase window size and wait 2 seconds to ensure elements are placed properly by js. 32 # Keep window large else drag will scroll the window to find element. 33 And I change window size to "large" 34 And I wait "2" seconds 35 And I drag "quick" to space "1" in the drag and drop into text question 36 And I drag "fox" to space "2" in the drag and drop into text question 37 And I drag "assiduous" to space "3" in the drag and drop into text question 38 And I press "Submit and finish" 39 Then the state of "The" question is shown as "Partially correct" 40 And I should see "Mark 0.67 out of 1.00" 41 And I switch to the main window 42 43 @javascript 44 Scenario: Preview a question using the keyboard & submit incomplete. 45 When I click on "Preview" "link" in the "Drag to text" "table_row" 46 And I switch to "questionpreview" window 47 And I type " " into space "1" in the drag and drop onto image question 48 And I type " " into space "2" in the drag and drop onto image question 49 And I type " " into space "3" in the drag and drop onto image question 50 And I press "Save" 51 Then the state of "The" question is shown as "Incomplete answer" 52 And I should see "Please put an answer in each box." 53 And I switch to the main window 54 55 @javascript 56 Scenario: Preview a question using the keyboard. 57 When I click on "Preview" "link" in the "Drag to text" "table_row" 58 And I switch to "questionpreview" window 59 And I type " " into space "1" in the drag and drop onto image question 60 And I type " " into space "2" in the drag and drop onto image question 61 And I type " " into space "3" in the drag and drop onto image question 62 And I press "Submit and finish" 63 Then the state of "The" question is shown as "Incorrect" 64 And I should see "Mark 0.00 out of 1.00" 65 And I switch to the main window
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |