Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11 efrain 1
@theme_classic
2
Feature: Select course sections using classic theme
3
  In order to view course sections when using the classic theme
4
  As a teacher
5
  I need to select the section from the section selector
6
 
7
  Background:
8
    Given the following "course" exists:
9
      | fullname         | Course 1 |
10
      | shortname        | C1       |
11
      | numsections      | 3        |
12
      | initsections     | 1        |
13
    And the following "activities" exist:
14
      | course | activity | name         | idnumber | section |
15
      | C1     | assign   | Assignment 1 | assign1  | 1       |
16
      | C1     | assign   | Assignment 2 | assign2  | 2       |
17
 
18
  @javascript
19
  Scenario: Use the course section selector in classic theme
20
    Given I am on the "C1" "Course" page logged in as "admin"
21
    And I turn editing mode on
22
    When I choose the "View" item in the "Edit" action menu of the "Section 1" "section"
23
    Then I should see "Section 1"
24
    And I should see "Assignment 1"
25
    And I should not see "Assignment 2"
26
    And I select "Section 2" from the "jump" singleselect
27
    And I should see "Section 2"
28
    And I should not see "Assignment 1"
29
    And I should see "Assignment 2"
30
    And the "jump" select box should contain "Section 3"