You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.1 KiB
45 lines
2.1 KiB
@mod @mod_forum
|
|
Feature: A teacher can control the subscription to a forum
|
|
In order to change individual user's subscriptions
|
|
As a course administrator
|
|
I can change subscription setting for my users
|
|
|
|
Background:
|
|
Given the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| teacher | Teacher | Tom | teacher@example.com |
|
|
| student1 | Student | 1 | student.1@example.com |
|
|
| student2 | Student | 2 | student.2@example.com |
|
|
And the following "courses" exist:
|
|
| fullname | shortname | category |
|
|
| Course 1 | C1 | 0 |
|
|
And the following "course enrolments" exist:
|
|
| user | course | role |
|
|
| teacher | C1 | editingteacher |
|
|
| student1 | C1 | student |
|
|
| student2 | C1 | student |
|
|
And I log in as "teacher"
|
|
And I am on "Course 1" course homepage with editing mode on
|
|
And I add a "Forum" to section "1" and I fill the form with:
|
|
| Forum name | Test forum name |
|
|
| Forum type | Standard forum for general use |
|
|
| Description | Test forum description |
|
|
| Subscription mode | Auto subscription |
|
|
|
|
Scenario: A teacher can change toggle subscription editing on and off
|
|
Given I follow "Test forum name"
|
|
And I follow "Show/edit current subscribers"
|
|
Then ".userselector" "css_element" should not exist
|
|
And "Manage subscribers" "button" should exist
|
|
And I press "Manage subscribers"
|
|
And ".userselector" "css_element" should exist
|
|
And "Finish managing subscriptions" "button" should exist
|
|
And I press "Finish managing subscriptions"
|
|
And ".userselector" "css_element" should not exist
|
|
And "Manage subscribers" "button" should exist
|
|
And I press "Manage subscribers"
|
|
And ".userselector" "css_element" should exist
|
|
And "Finish managing subscriptions" "button" should exist
|
|
And I press "Finish managing subscriptions"
|
|
And ".userselector" "css_element" should not exist
|
|
And "Manage subscribers" "button" should exist
|
|
|