1 |
efrain |
1 |
@mod @mod_forum @javascript
|
|
|
2 |
Feature: A teacher or admin when changes the subscription mode should land in the subscriptions tab
|
|
|
3 |
|
|
|
4 |
Background:
|
|
|
5 |
Given the following "users" exist:
|
|
|
6 |
| username | firstname | lastname | email |
|
|
|
7 |
| teacher | Teacher | Tom | teacher@example.com |
|
|
|
8 |
And the following "courses" exist:
|
|
|
9 |
| fullname | shortname | category |
|
|
|
10 |
| Course 1 | C1 | 0 |
|
|
|
11 |
And the following "course enrolments" exist:
|
|
|
12 |
| user | course | role |
|
|
|
13 |
| teacher | C1 | editingteacher |
|
|
|
14 |
And the following "activity" exists:
|
|
|
15 |
| course | C1 |
|
|
|
16 |
| activity | forum |
|
|
|
17 |
| name | Test forum name |
|
|
|
18 |
|
|
|
19 |
Scenario: A teacher views subscriptions tab and changes the subscriptions mode to forced mode and lands in subscription tab
|
|
|
20 |
Given I am on the "Test forum name" "forum activity" page logged in as teacher
|
|
|
21 |
And I navigate to "Subscriptions" in current page administration
|
|
|
22 |
When I select "Forced subscription" from the "Subscription mode" singleselect
|
|
|
23 |
And I should see "Everyone is now subscribed to this forum"
|
|
|
24 |
Then I should see "Forced subscription"
|
|
|
25 |
And I should not see "View subscribers"
|
|
|
26 |
And I should not see "Manage subscribers"
|