| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_book 2 Feature: In a book, change the navigation options 3 In order to change the way a book's chapters can be traversed 4 As a teacher 5 I need to change navigation options on a book 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | groupmode | 10 | Course 1 | C1 | 0 | 1 | 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 21 Scenario: Change navigation options 22 Given I add a "Book" to section "1" and I fill the form with: 23 | Name | Test book | 24 | Description | A book about lorem ipsum | 25 | Style of navigation | TOC Only | 26 And I follow "Test book" 27 And I should see "Add new chapter" 28 And I set the following fields to these values: 29 | Chapter title | Test chapter 1 | 30 | Content | Lorem ipsum dolor sit amet | 31 And I press "Save changes" 32 And I should see "Test book" 33 And I should see "1 Test chapter 1" 34 And I click on "Add new chapter" "link" in the "Table of contents" "block" 35 And I set the following fields to these values: 36 | Chapter title | Test chapter 2 | 37 | Content | consectetur adipiscing elit | 38 And I press "Save changes" 39 And I should see "Test book" 40 And I should see "2 Test chapter 2" 41 And I click on "1 Test chapter 1" "link" in the "Table of contents" "block" 42 And "Next" "link" should not exist 43 And I click on "2 Test chapter 2" "link" in the "Table of contents" "block" 44 And "Previous" "link" should not exist 45 And I click on "Edit settings" "link" in the "Administration" "block" 46 And I set the field "Style of navigation" to "Images" 47 And I press "Save and display" 48 And "//a/child::img[contains(@src, 'nav_next')]" "xpath_element" should exist 49 And I click on "2 Test chapter 2" "link" in the "Table of contents" "block" 50 And "//a/child::img[contains(@src, 'nav_prev')]" "xpath_element" should exist 51 When I click on "Edit settings" "link" in the "Administration" "block" 52 And I set the field "Style of navigation" to "Text" 53 And I press "Save and display" 54 Then "Next" "link" should exist 55 And I click on "2 Test chapter 2" "link" in the "Table of contents" "block" 56 And "Previous" "link" should 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 |