Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_course @_cross_browser @javascript
2
Feature: Topic's course sections highlighting
3
  In order to highlight parts of the course to students
4
  As a teacher
5
  I need to highlight one specific section
6
 
7
  @javascript
8
  Scenario Outline: Highlight a course section with course paged mode and without it
9
    Given the following "users" exist:
10
      | username | firstname | lastname | email |
11
      | teacher1 | Teacher | 1 | teacher1@example.com |
12
      | student1 | Student | 1 | student1@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | format | coursedisplay |
15
      | Course 1 | C1 | topics | <coursedisplay> |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
    And I log in as "teacher1"
21
    And I am on "Course 1" course homepage with editing mode on
22
    When I turn section "1" highlighting on
23
    Then section "1" should be highlighted
24
    And I turn section "2" highlighting on
25
    And section "2" should be highlighted
26
    And section "1" should not be highlighted
27
    And I am on "Course 1" course homepage
28
    And section "2" should be highlighted
29
    And section "1" should not be highlighted
30
    And I turn section "2" highlighting off
31
    And I wait until the page is ready
32
    And section "2" should not be highlighted
33
    And I reload the page
34
    And section "2" should not be highlighted
35
    And I am on "Course 1" course homepage
36
    And section "2" should not be highlighted
37
    And I log out
38
    And I log in as "student1"
39
    And I am on "Course 1" course homepage
40
    And section "1" should not be highlighted
41
    And section "2" should not be highlighted
42
 
43
    Examples:
44
      | coursedisplay |
45
      | 0            |
46
      | 1            |