AutorÃa | Ultima modificación | Ver Log |
@mod @mod_forumFeature: A teacher can control the subscription to a forumIn order to change individual user's subscriptionsAs a course administratorI can change subscription setting for my usersBackground: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 |Scenario: A teacher can change toggle subscription editing on and offGiven the following "activity" exists:| activity | forum || course | C1 || idnumber | f01 || name | Test forum name |When I am on the "Test forum name" "forum activity" page logged in as teacherAnd I navigate to "Subscriptions" in current page administrationThen I select "Manage subscribers" from the "Subscribers" singleselectAnd "Add" "button" should existAnd "Remove" "button" should existAnd I select "View subscribers" from the "Subscribers" singleselectAnd the "Subscribers" select box should contain "View subscribers"@javascriptScenario Outline: Toggle forum subscription mode via settings navigationGiven the following "activity" exists:| course | C1 || activity | forum || name | Test forum || idnumber | F1 || type | general || forcesubscribe | <initialmode> |When I am on the "Test forum" "forum activity" page logged in as "teacher"And I navigate to "Subscriptions" in current page administrationAnd I select "<updatedmode>" from the "Subscription mode" singleselectThen I should see "<updatedmodeconfirmed>"Examples:| initialmode | updatedmode | updatedmodeconfirmed || 1 | Optional subscription | Everyone can now choose to be subscribed || 0 | Forced subscription | Everyone is now subscribed to this forum || 0 | Auto subscription | Everyone is now subscribed to this forum || 0 | Subscription disabled | Subscriptions are now disallowed |