[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: Restrict availability of the choice module to a deadline 3 In order to limit the time a student can mace a selection 4 As a teacher 5 I need to restrict answering to within a time period 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 activity with a start deadline in the future 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 | timeopen[day] | 30 | 31 | timeopen[month] | December | 32 | timeopen[year] | 2037 | 33 And I log out 34 When I log in as "student1" 35 And I follow "Course 1" 36 And I follow "Choice name" 37 Then I should see "Sorry, this activity is not available until" 38 39 Scenario: Enable the choice activity with a start deadline in the past 40 Given I add a "Choice" to section "1" and I fill the form with: 41 | Choice name | Choice name | 42 | Description | Choice Description | 43 | option[0] | Option 1 | 44 | option[1] | Option 2 | 45 | timeopen[enabled] | 1 | 46 | timeopen[day] | 30 | 47 | timeopen[month] | December | 48 | timeopen[year] | 2007 | 49 And I log out 50 When I log in as "student1" 51 And I follow "Course 1" 52 And I follow "Choice name" 53 And "choice_1" "radio" should exist 54 And "choice_2" "radio" should exist 55 And "Save my choice" "button" should exist 56 57 Scenario: Enable the choice activity with a end deadline in the future 58 Given I add a "Choice" to section "1" and I fill the form with: 59 | Choice name | Choice name | 60 | Description | Choice Description | 61 | option[0] | Option 1 | 62 | option[1] | Option 2 | 63 | timeclose[enabled] | 1 | 64 | timeclose[day] | 30 | 65 | timeclose[month] | December | 66 | timeclose[year] | 2037 | 67 And I log out 68 When I log in as "student1" 69 And I follow "Course 1" 70 And I follow "Choice name" 71 And "choice_1" "radio" should exist 72 And "choice_2" "radio" should exist 73 And "Save my choice" "button" should exist 74 75 Scenario: Enable the choice activity with a end deadline in the past 76 Given I add a "Choice" to section "1" and I fill the form with: 77 | Choice name | Choice name | 78 | Description | Choice Description | 79 | option[0] | Option 1 | 80 | option[1] | Option 2 | 81 | timeclose[enabled] | 1 | 82 | timeclose[day] | 30 | 83 | timeclose[month] | December | 84 | timeclose[year] | 2007 | 85 And I log out 86 When I log in as "student1" 87 And I follow "Course 1" 88 And I follow "Choice name" 89 Then I should see "Sorry, this activity closed on"
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 |