Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@report @report_log @mod_subsection
2
Feature: Subsection behavior in Log report.
3
 
4
  Background:
5
    Given the following "courses" exist:
6
      | fullname | shortname  | category  | numsections | initsections |
7
      | Course 1 | C1         | 0         | 2           | 1            |
8
    And the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | student1 | Student | 1 | student1@example.com |
11
    And the following "course enrolments" exist:
12
      | user | course | role |
13
      | admin | C1 | editingteacher |
14
      | student1 | C1 | student |
15
    And the following "activities" exist:
16
      | activity   | name         | course | idnumber    | section |
17
      | subsection | Subsection 1 | C1     | subsection1 | 1       |
18
      | page       | Page 1       | C1     | page1       | 3       |
19
 
20
  @javascript
21
  Scenario: Visible subsections should be available in the activities selector
22
    Given I log in as "admin"
23
    And I am on "Course 1" course homepage
24
    When I navigate to "Reports" in current page administration
25
    And I click on "Logs" "link"
26
    Then the "Activities" select box should contain "Subsection 1"
27
    And the "Activities" select box should contain "Page 1"
28
 
29
  @javascript
30
  Scenario: Hidden subsections should be available in the activities selector
31
    Given I log in as "admin"
32
    And I am on "Course 1" course homepage with editing mode on
33
    And I hide section "Subsection 1"
34
    When I navigate to "Reports" in current page administration
35
    And I click on "Logs" "link"
36
    Then the "Activities" select box should not contain "Subsection 1"
37
    And the "Activities" select box should not contain "Page 1"