[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @qtype @qtype_essay 2 Feature: Test editing an Essay question 3 As a teacher 4 In order to be able to update my Essay question 5 I need to edit them 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | T1 | Teacher1 | teacher1@example.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 And I log in as "teacher1" 26 And I follow "Course 1" 27 And I navigate to "Question bank" node in "Course administration" 28 29 Scenario: Edit an Essay question 30 When I click on "Edit" "link" in the "essay-001" "table_row" 31 And I set the following fields to these values: 32 | Question name | | 33 And I press "id_submitbutton" 34 Then I should see "You must supply a value here." 35 When I set the following fields to these values: 36 | Question name | Edited essay-001 name | 37 | Response format | No inline text | 38 And I press "id_submitbutton" 39 Then I should see "When \"no inline text\" is selected, or responses are optional, you must allow at least one attachment." 40 When I set the following fields to these values: 41 | Response format | Plain text | 42 And I press "id_submitbutton" 43 Then I should see "Edited essay-001 name"
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 |