[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_section_links 2 Feature: The section links block allows users to quickly navigate around a moodle course 3 In order to navigate a moodle course 4 As a teacher 5 I can use the section links block 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C1 | 0 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | teacher1 | Teacher | 1 | teacher1@example.com | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 And I log in as "teacher1" 18 And I follow "Course 1" 19 And I turn editing mode on 20 And I add a "Assignment" to section "5" and I fill the form with: 21 | Assignment name | Test assignment 1 | 22 | Description | Offline text | 23 | assignsubmission_file_enabled | 0 | 24 And I navigate to "Edit settings" node in "Course administration" 25 And I set the following fields to these values: 26 | id_numsections | 20 | 27 | id_coursedisplay | Show one section per page | 28 And I press "Save and display" 29 30 31 Scenario: Add the section links block to a course. 32 Given I add the "Section links" block 33 And I turn editing mode off 34 And I should see "5" in the "Section links" "block" 35 When I follow "5" 36 Then I should see "Test assignment 1" 37 38 Scenario: Add the section links block to a course and limit the sections displayed. 39 Given I add the "Section links" block 40 And I configure the "Section links" block 41 And I set the following fields to these values: 42 | id_config_numsections1 | 5 | 43 | id_config_incby1 | 5 | 44 | id_config_numsections2 | 40 | 45 | id_config_incby2 | 10 | 46 And I press "Save changes" 47 And I turn editing mode off 48 And I should see "5" in the "Section links" "block" 49 When I follow "5" 50 Then I should see "Test assignment 1" 51 52 Scenario: Add the section links block to a course and limit the sections displayed using the alternative number of sections. 53 Given I add the "Section links" block 54 And I configure the "Section links" block 55 And I set the following fields to these values: 56 | id_config_numsections1 | 5 | 57 | id_config_incby1 | 1 | 58 | id_config_numsections2 | 10 | 59 | id_config_incby2 | 5 | 60 And I press "Save changes" 61 And I turn editing mode off 62 And I should see "5" in the "Section links" "block" 63 When I follow "5" 64 Then I should see "Test assignment 1"
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 |