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: Changes to the subscription mode of a forum can change subcribers of a forum
3
 
4
  Background:
5
    Given the following "users" exist:
6
      | username | firstname | lastname | email |
7
      | teacher  | Teacher   | Tom      | teacher@example.com   |
8
      | student1 | Student   | 1        | student.1@example.com |
9
      | student2 | Student   | 2        | student.2@example.com |
10
    And the following "courses" exist:
11
      | fullname | shortname | category |
12
      | Course 1 | C1 | 0 |
13
    And the following "course enrolments" exist:
14
      | user     | course | role           |
15
      | teacher  | C1     | editingteacher |
16
      | student1 | C1     | student        |
17
      | student2 | C1     | student        |
18
    And the following "activity" exists:
19
      | activity         | forum                  |
20
      | idnumber         | f01                    |
21
      | course           | C1                     |
22
      | name             | Test forum name        |
23
      | type             | general                |
24
      | forcesubscribe   | 1                      |
25
 
26
  Scenario: A change from Forced subscription to Auto subcription causes all participants to be subscribed
27
    Given I am on the "Test forum name" "forum activity" page logged in as teacher
28
    And I navigate to "Subscriptions" in current page administration
29
    When I select "Auto subscription" from the "Subscription mode" singleselect
30
    Then I should not see "There are no subscribers yet for this forum"
31
    And I navigate to "Subscriptions" in current page administration
32
    And the following should exist in the "subscribers-table" table:
33
      | Full name | Email address |
34
      | Student 1 | student.1@example.com |
35
      | Student 2 | student.2@example.com |
36
      | Teacher Tom | teacher@example.com |