[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: Allow choice preview 3 In order to allow students to preview options before a choice activity is opened for submission 4 As a teacher 5 I need to enable the choice preview option 6 7 Background: 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 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And I log in as "teacher1" 20 And I follow "Course 1" 21 And I turn editing mode on 22 23 Scenario: Enable the choice preview option and view the activity as a student before the opening time 24 Given 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 | timeopen[enabled] | 1 | 30 | timeclose[enabled] | 1 | 31 | timeopen[day] | 30 | 32 | timeopen[month] | December | 33 | timeopen[year] | 2037 | 34 | timeclose[day] | 31 | 35 | timeclose[month] | December | 36 | timeclose[year] | 2037 | 37 | Show preview | 1 | 38 And I log out 39 When I log in as "student1" 40 And I follow "Course 1" 41 And I follow "Choice name" 42 Then I should see "This is just a preview of the available options for this activity" 43 And the "choice_1" "radio" should be disabled 44 And the "choice_2" "radio" should be disabled 45 And "Save my choice" "button" should not exist
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 |