switches_edit_forum.feature 1.79 KB
Newer Older
1
2
3
4
5
6
7
@javascript @core @core_group
Feature: Switching switch on and off when editing a forum
 In order to automatically subscribe users via switchbox
 As an admin
 I need to be able to flick the switch on and off

Scenario: Turning on and off switches in the group forums tab (Bug 1431569)
8
 Given I log in as "admin" with password "Kupuhipa1"
9
 And I choose "My groups" in "Groups" from Main menu
10
11
12
13
14
15
16
17
18
 And I follow "Create group"
 And I set the following fields to these values:
 | Group name | Turtles |
 When I press "Save group"
 And I follow "Forums"
 And I follow "General discussion"
 And I follow "Edit forum"
 # There are 2 settings links on the page and it needs to identify which one to follow
 And I follow "Forum settings"
19
 # Checking "Automatically subscribe users" switchbox is on by default
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 And the "edit_interaction_autosubscribe" checkbox should be checked
 # Checking it can be turned off
 When I uncheck "edit_interaction_autosubscribe"
 # Checking it can turn back on
 Then I check "edit_interaction_autosubscribe"
 # Verifying that it did turn back on
 And the "edit_interaction_autosubscribe" checkbox should be checked
 # Checking off is the default setting on the close new topics checkbox
 And the "edit_interaction_closetopics" checkbox should not be checked
 # Checking it turns on
 And I check "edit_interaction_closetopics"
 # Checking it turns back off
 And I uncheck "edit_interaction_closetopics"
 And I press "Save"
34
35
36
37
38
39
40
41
42
 # And I add another forum
 And I follow "Forums"
 And I follow "New forum"
 And I set the following fields to these values:
 | Title | Freshwater turtles |
 | Description | All about freshwater turtles |
 And I follow "Forum settings"
 # Checking "Automatically subscribe users" switchbox is on by default
 And the "edit_interaction_autosubscribe" checkbox should be checked
43
 And I press "Save"