Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 4... Línea 4...
4
  As a teacher
4
  As a teacher
5
  I need to log in as a teacher and view the outline report
5
  I need to log in as a teacher and view the outline report
Línea 6... Línea 6...
6
 
6
 
7
  Background:
7
  Background:
8
    Given the following "courses" exist:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format |
9
      | fullname | shortname | format | numsections |
10
      | Course 1 | C1 | topics |
10
      | Course 1 | C1        | topics | 1           |
11
    And the following "users" exist:
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
12
      | username | firstname | lastname | email |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
14
      | student1 | Student | 1 | student1@example.com |
14
      | student1 | Student | 1 | student1@example.com |
Línea 86... Línea 86...
86
    When I am on the "Course 1" course page logged in as teacher1
86
    When I am on the "Course 1" course page logged in as teacher1
87
    And I navigate to "Reports" in current page administration
87
    And I navigate to "Reports" in current page administration
88
    And I click on "Activity report" "link"
88
    And I click on "Activity report" "link"
89
    Then I should see "-" in the "Forum name" "table_row"
89
    Then I should see "-" in the "Forum name" "table_row"
90
    And I should see "-" in the "Book name" "table_row"
90
    And I should see "-" in the "Book name" "table_row"
-
 
91
 
-
 
92
  Scenario: The outline report can represent courses with subsections
-
 
93
    Given the following "activities" exist:
-
 
94
      | activity | name      | course | section | visible | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
-
 
95
      | assign   | Activity1 | C1     | 1       | 1       | 1                                   | 0                             |
-
 
96
    And the following "activities" exist:
-
 
97
      | activity   | name        | course | section | visible |
-
 
98
      | subsection | Subsection1 | C1     | 1       | 1       |
-
 
99
    And the following "activities" exist:
-
 
100
      | activity | name           | course | section | visible | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
-
 
101
      | assign   | Subactivity1.1 | C1     | 2       | 1       | 1                                   | 0                             |
-
 
102
      | assign   | Subactivity1.2 | C1     | 2       | 0       | 1                                   | 0                             |
-
 
103
      | assign   | Activity2      | C1     | 1       | 1       | 1                                   | 0                             |
-
 
104
    When I am on the "Course 1" course page logged in as teacher1
-
 
105
    And I navigate to "Reports" in current page administration
-
 
106
    And I click on "Activity report" "link"
-
 
107
    Then "Subactivity1.1" "table_row" should appear after "Activity1" "table_row"
-
 
108
    And "Subactivity1.2" "table_row" should appear after "Subactivity1.1" "table_row"
-
 
109
    And "Activity2" "table_row" should appear after "Subactivity1.2" "table_row"
-
 
110
    And I navigate to "Participants" in current page administration
-
 
111
    And I click on "Student 1" "link"
-
 
112
    And I click on "Outline report" "link"
-
 
113
    And "Subactivity1.1" "table_row" should appear after "Activity1" "table_row"
-
 
114
    And I should not see "Subactivity1.2" in the "page-content" "region"
-
 
115
    And "Activity2" "table_row" should appear after "Subactivity1.1" "table_row"