Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_course
2
Feature: Activities can be moved between sections
3
  In order to rearrange my course contents
4
  As a teacher
5
  I need to move activities between sections
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     | 00001     | 1       |
24
      | forum    | Second forum name  | C1     | 00002     | 1       |
25
    And I log in as "teacher1"
26
    And I am on "Course 1" course homepage with editing mode on
27
 
28
  Scenario: Move activities in a single page course with Javascript disabled
29
    When I move "Test forum name" activity to section "2"
30
    Then I should see "Test forum name" in the "Section 2" "section"
31
    And I should not see "Test forum name" in the "Section 1" "section"
32
 
33
  Scenario: Move activities in the course home with Javascript disabled using paged mode
34
    Given I navigate to "Settings" in current page administration
35
    And I set the following fields to these values:
36
      | Course layout | Show one section per page |
37
    And I press "Save and display"
38
    When I move "Test forum name" activity to section "2"
39
    Then I should see "Test forum name" in the "Section 2" "section"
40
    And I should not see "Test forum name" in the "Section 1" "section"
41
 
42
  Scenario: Move activities in a course section with Javascript disabled using paged mode
43
    Given I navigate to "Settings" in current page administration
44
    And I set the following fields to these values:
45
      | Course layout | Show one section per page |
46
    And I press "Save and display"
47
    And I follow "Section 1"
48
    When I move "Second forum name" activity to section "1"
49
    Then "Second forum name" "link" should appear before "Test forum name" "link"
50
 
51
  @javascript
52
  Scenario: Move activity with javascript
53
    When I move "Test forum name" activity to section "3"
54
    Then I should see "Test forum name" in the "Section 3" "section"