Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@format @format_topics
2
Feature: General section does not show in navigation when empty
3
  In order to keep my navigation links relevant
4
  As a teacher
5
  The general section links should not appear in the navigation when the section is empty
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email            |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | format | coursedisplay | numsections |
13
      | Course 1 | C1        | topics | 0             | 5           |
14
    And the following "course enrolments" exist:
15
      | user     | course | role           |
16
      | teacher1 | C1     | editingteacher |
17
    And the following "activities" exist:
18
      | activity | name            | course | idnumber | section |
19
      | forum    | Test forum name | C1     | forum1   | 1       |
20
    And I log in as "teacher1"
21
    And I am on "Course 1" course homepage with editing mode on
22
    And the following config values are set as admin:
23
      | unaddableblocks | | theme_boost|
24
    And I add the "Navigation" block if not present
25
 
26
  Scenario: General section is visible in navigation when it is not empty
27
    When I move "Test forum name" activity to section "0"
28
    And I am on "Course 1" course homepage
29
    Then I should see "General" in the "Navigation" "block"
30
 
31
  Scenario: General section is not visible in navigation when it is empty
32
    When I move "Test forum name" activity to section "3"
33
    And I am on "Course 1" course homepage
34
    Then I should not see "General" in the "Navigation" "block"