Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@core @core_course @core_courseformat
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
      | forum    | Third forum name  | C1     | 00002    | 3       |
26
      | forum    | Fourth forum name | C1     | 00002    | 3       |
27
    And I log in as "teacher1"
28
    And I am on "Course 1" course homepage with editing mode on
29
 
30
  @javascript
31
  Scenario: Move activity step test
32
    When I move "Test forum name" activity to section "3"
33
    Then I should see "Test forum name" in the "Section 3" "section"
34
    And "Test forum name" "activity" should appear before "Third forum name" "activity"
35
 
36
  @javascript
37
  Scenario: The teacher can move an activity to another section using the activity action menu
38
    When I open "Test forum name" actions menu
39
    And I click on "Move" "link" in the "Test forum name" activity
40
    And I click on "Section 3" "link" in the "Move activity" "dialogue"
41
    Then  I should see "Test forum name" in the "Section 3" "section"
42
 
43
  @javascript
44
  Scenario: The teacher can reorder activities in the same section using the activity action menu
45
    Given "Test forum name" "activity" should appear before "Second forum name" "activity"
46
    When I open "Test forum name" actions menu
47
    And I click on "Move" "link" in the "Test forum name" activity
48
    And I click on "Second forum name" "link" in the "Move activity" "dialogue"
49
    Then  I should see "Test forum name" in the "Section 1" "section"
50
    And "Second forum name" "activity" should appear before "Test forum name" "activity"
51
 
52
  @javascript
53
  Scenario: The teacher can move an in the middle of a section using the activity action menu
54
    When I open "Test forum name" actions menu
55
    And I click on "Move" "link" in the "Test forum name" activity
56
    And I click on "Expand" "link" in the "movemodalsection3" "region"
57
    And I click on "Third forum name" "link" in the "Move activity" "dialogue"
58
    Then  I should see "Test forum name" in the "Section 3" "section"
59
    And "Third forum name" "activity" should appear before "Test forum name" "activity"
60
    And "Test forum name" "activity" should appear before "Fourth forum name" "activity"