Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
 
19
  # The option to "Style of navigation" is removed from the settings.
20
  Scenario: Change navigation options
21
    Given the following "activities" exist:
22
      | activity | name      | course | idnumber | navstyle |
23
      | book     | Test book | C1     | book1    | 0        |
24
    And I am on "Course 1" course homepage with editing mode on
25
    And I follow "Test book"
26
    And I should see "Add new chapter"
27
    And I set the following fields to these values:
28
      | Chapter title | Test chapter 1 |
29
      | Content | Lorem ipsum dolor sit amet |
30
    And I press "Save changes"
31
    And I should see "Test book"
32
    And I should see "1. Test chapter 1"
33
    And I click on "Add new chapter" "link" in the "Table of contents" "block"
34
    And I set the following fields to these values:
35
      | Chapter title | Test chapter 2 |
36
      | Content | consectetur adipiscing elit |
37
    And I press "Save changes"
38
    And I should see "Test book"
39
    And I should see "2. Test chapter 2"
40
    And I click on "1. Test chapter 1" "link" in the "Table of contents" "block"
41
    And "Next" "link" should exist
42
    And I click on "2. Test chapter 2" "link" in the "Table of contents" "block"
43
    And "Previous" "link" should exist