[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: Add activities to courses 3 In order to provide tools for students learning 4 As a teacher 5 I need to add activites to a course 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | student1 | Student | 1 | student1@example.com | 11 | student2 | Student | 2 | student2@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | format | 14 | Course 1 | C1 | topics | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C1 | student | 18 | student2 | C1 | student | 19 And I log in as "admin" 20 And I am on site homepage 21 And I follow "Course 1" 22 And I turn editing mode on 23 24 @javascript 25 Scenario: Add an activity to a course 26 When I add a "Database" to section "3" and I fill the form with: 27 | Name | Test name | 28 | Description | Test database description | 29 | Entries required for completion | 9 | 30 | Allow comments on entries | Yes | 31 And I turn editing mode off 32 Then I should not see "Adding a new" 33 And I follow "Test name" 34 And I click on "Edit settings" "link" in the "Administration" "block" 35 And I expand all fieldsets 36 And the field "Name" matches value "Test name" 37 And the field "Entries required for completion" matches value "9" 38 And the field "Allow comments on entries" matches value "Yes" 39 40 @javascript 41 Scenario: Add an activity supplying only the name 42 When I add a "Database" to section "3" and I fill the form with: 43 | Name | Test name | 44 Then I should see "Test name" 45 46 @javascript 47 Scenario: Set activity description to required then add an activity supplying only the name 48 Given I set the following administration settings values: 49 | requiremodintro | Yes | 50 When I am on site homepage 51 And I follow "Course 1" 52 And I add a "Database" to section "3" and I fill the form with: 53 | Name | Test name | 54 Then I should see "Required" 55 56 Scenario: Add an activity to a course with Javascript disabled 57 Then I should see "Add a resource to section 'Topic 1'" 58 And I should see "Add an activity to section 'Topic 1'" 59 And I should see "Add a resource to section 'Topic 2'" 60 And I should see "Add an activity to section 'Topic 2'" 61 And I should see "Add a resource to section 'Topic 3'" 62 And I should see "Add an activity to section 'Topic 3'" 63 And I add a "Label" to section "2" 64 And I should see "Adding a new Label to Topic 2" 65 And I set the following fields to these values: 66 | Label text | I'm a label | 67 And I press "Save and return to course" 68 And I add a "Database" to section "3" 69 And I should see "Adding a new Database to Topic 3" 70 And I set the following fields to these values: 71 | Name | Test database name | 72 | Description | Test database description | 73 And I press "Save and return to course" 74 And I should not see "Adding a new" 75 And I should see "Test database name" 76 And I should see "I'm a label"
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 |