Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@core @core_course
2
Feature: Sections can be moved
3
  In order to rearrange my course contents
4
  As a teacher
5
  I need to move sections up and down
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 "course" exists:
12
      | fullname      | Course 1   |
13
      | shortname     | C1         |
14
      | format        | topics     |
15
      | coursedisplay | 0          |
16
      | numsections   | 5          |
17
      |initsections   | 1          |
18
    And the following "course enrolments" exist:
19
      | user     | course | role           |
20
      | teacher1 | C1     | editingteacher |
21
    And the following "activities" exist:
22
      | activity | name               | course | idnumber | section |
23
      | forum    | Test forum name    | C1     | forum1   | 1       |
24
      | forum    | Second forum name  | C1     | forum1   | 3       |
25
 
26
  @javascript
27
  Scenario: Teacher can move a section to another location
28
    Given I log in as "teacher1"
29
    And I am on "Course 1" course homepage with editing mode on
30
    When I open section "1" edit menu
31
    And I click on "Move" "link" in the "Section 1" "section"
32
    And I click on "Section 3" "link" in the "Move section" "dialogue"
33
    Then "Section 1" "section" should appear after "Section 3" "section"
34
    And I should see "Test forum name" in the "Section 1" "section"
35
    And I should see "Second forum name" in the "Section 3" "section"
36
 
37
  @javascript
38
  Scenario: Teacher can move a section under the general section
39
    Given I log in as "teacher1"
40
    And I am on "Course 1" course homepage with editing mode on
41
    When I open section "3" edit menu
42
    And I click on "Move" "link" in the "Section 3" "section"
43
    And I click on "General" "link" in the "Move section" "dialogue"
44
    Then "General" "section" should appear before "Section 3" "section"
45
    Then "Section 3" "section" should appear before "Section 1" "section"
46
    And I should see "Test forum name" in the "Section 1" "section"
47
    And I should see "Second forum name" in the "Section 3" "section"