And I press "Finish managing subscriptions"
And ".userselector" "css_element" should not exist
And "Manage subscribers" "button" should exist
- When I log in as "teacher"
- And I am on "Course 1" course homepage
- And I follow "Test forum"
+
+ @javascript
+ Scenario Outline: Toggle forum subscription mode via settings navigation
+ Given 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 open the action menu in "#region-main-box" "css_element"
+ And I choose "<updatedmode>" in the open action menu
+ And I should see "Are you sure you want to change the subscription mode to \"<updatedmode>\"" in the "Confirmation" "dialogue"
+ And I click on "Yes" "button" in the "Confirmation" "dialogue"
+ Then 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 |