[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: Update a choice activity removing options 3 In order to remove incorrect or unwanted options 4 As a teacher 5 I need to update the choice activity 6 7 Scenario: Update a choice activity that has student responses. 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 | student2 | Student | 2 | student2@example.com | 13 And the following "courses" exist: 14 | fullname | shortname | category | 15 | Course 1 | C1 | 0 | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 | student2 | C1 | student | 21 And I log in as "teacher1" 22 And I follow "Course 1" 23 And I turn editing mode on 24 And I add a "Choice" to section "1" and I fill the form with: 25 | Choice name | Choice name | 26 | Description | Choice Description | 27 | option[0] | Option 1 | 28 | option[1] | Option 2 | 29 | option[2] | Option 3 | 30 And I log out 31 And I log in as "student1" 32 And I follow "Course 1" 33 And I choose "Option 3" from "Choice name" choice activity 34 And I should see "Your selection: Option 3" 35 And I should see "Your choice has been saved" 36 And I log out 37 And I log in as "student2" 38 And I follow "Course 1" 39 And I choose "Option 2" from "Choice name" choice activity 40 And I should see "Your selection: Option 2" 41 And I should see "Your choice has been saved" 42 And I log out 43 When I log in as "teacher1" 44 And I follow "Course 1" 45 And I follow "Choice name" 46 And I should see "View 2 responses" 47 And I navigate to "Edit settings" node in "Choice administration" 48 And I set the field "option[2]" to "" 49 And I press "Save and display" 50 Then I should see "View 1 responses"
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 |