[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @qtype @qtype_essay 2 Feature: Preview Essay questions 3 As a teacher 4 In order to check my Essay 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 | essay | essay-001 | editor | 23 | Test questions | essay | essay-002 | editorfilepicker | 24 | Test questions | essay | essay-003 | plain | 25 Given I log in as "teacher1" 26 And I follow "Course 1" 27 And I navigate to "Question bank" node in "Course administration" 28 29 @javascript @_switch_window 30 Scenario: Preview an Essay question and submit a partially correct response. 31 When I click on "Preview" "link" in the "essay-001" "table_row" 32 And I switch to "questionpreview" window 33 And I set the field "How questions behave" to "Immediate feedback" 34 And I press "Start again with these options" 35 And I should see "Please write a story about a frog." 36 And I switch to the main window 37 38 @javascript @_switch_window 39 Scenario: Preview an Essay question and submit a partially correct response. 40 When I click on "Preview" "link" in the "essay-002" "table_row" 41 And I switch to "questionpreview" window 42 And I set the field "How questions behave" to "Immediate feedback" 43 And I press "Start again with these options" 44 And I should see "Please write a story about a frog." 45 And I should see "You can drag and drop files here to add them." 46 And I switch to the main window 47 48 @javascript @_switch_window 49 Scenario: Preview an Essay question and submit a partially correct response. 50 When I click on "Preview" "link" in the "essay-003" "table_row" 51 And I switch to "questionpreview" window 52 And I set the field "How questions behave" to "Immediate feedback" 53 And I press "Start again with these options" 54 And I should see "Please write a story about a frog." 55 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 |