Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@mod @mod_subsection @report
2
Feature: Subsections are shown in reports
3
  In order to use reports
4
  As an teacher
5
  I need to see sections and subsections structure in reports
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  | category  | numsections | initsections |
13
      | Course 1 | C1         | 0         | 1           | 1            |
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
      | page       | First page           | C1     | page1        | 1       |
20
      | subsection | Subsection 1         | C1     | subsection1  | 1       |
21
      | page       | Last page            | C1     | last         | 1       |
22
      | page       | Page in Subsection 1 | C1     | subpage      | 2       |
23
    And I log in as "teacher1"
24
 
25
  @report_outline
26
  Scenario: Course Activity report show subsections' information
27
    Given I am on "Course 1" course homepage
28
    When I navigate to "Reports > Activity report" in current page administration
29
    Then I should see "First page" in the "generaltable" "table"
30
    And "Subsection" "table_row" should appear before "Last page" "table_row"
31
    And "Page in Subsection 1" "table_row" should appear before "Last page" "table_row"