Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_forum
2
Feature: A teacher can control the subscription to a forum
3
  In order to change individual user's subscriptions
4
  As a course administrator
5
  I can change subscription setting for my users
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher  | Teacher   | Tom      | teacher@example.com   |
11
      | student1 | Student   | 1        | student.1@example.com |
12
      | student2 | Student   | 2        | student.2@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | category |
15
      | Course 1 | C1 | 0 |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher  | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
 
22
  Scenario: A teacher can change toggle subscription editing on and off
23
    Given the following "activity" exists:
24
      | activity         | forum                  |
25
      | course           | C1                     |
26
      | idnumber         | f01                    |
27
      | name             | Test forum name        |
28
    When I am on the "Test forum name" "forum activity" page logged in as teacher
29
    And I navigate to "Subscriptions" in current page administration
30
    Then I select "Manage subscribers" from the "Subscribers" singleselect
31
    And "Add" "button" should exist
32
    And "Remove" "button" should exist
33
    And I select "View subscribers" from the "Subscribers" singleselect
34
    And the "Subscribers" select box should contain "View subscribers"
35
 
36
  @javascript
37
  Scenario Outline: Toggle forum subscription mode via settings navigation
38
    Given the following "activity" exists:
39
      | course         | C1            |
40
      | activity       | forum         |
41
      | name           | Test forum    |
42
      | idnumber       | F1            |
43
      | type           | general       |
44
      | forcesubscribe | <initialmode> |
45
    When I am on the "Test forum" "forum activity" page logged in as "teacher"
46
    And I navigate to "Subscriptions" in current page administration
47
    And I select "<updatedmode>" from the "Subscription mode" singleselect
48
    Then I should see "<updatedmodeconfirmed>"
49
    Examples:
50
      | initialmode | updatedmode           | updatedmodeconfirmed                     |
51
      | 1           | Optional subscription | Everyone can now choose to be subscribed |
52
      | 0           | Forced subscription   | Everyone is now subscribed to this forum |
53
      | 0           | Auto subscription     | Everyone is now subscribed to this forum |
54
      | 0           | Subscription disabled | Subscriptions are now disallowed         |