switches_edit_group.feature 1.79 KB
Newer Older
1
2
3
4
5
6
7
@javascript @core @core_group
Feature: Switching switches on the Edit group page
In order to edit a group
As an admin
I need to be able to turn the switches on and off and save the page

Scenario: Turning on and off switches on Group Edit page (Bug 1431569)
8
 Given I log in as "admin" with password "Kupuhipa1"
9
 And I click on "Show Menu"
10
11
12
13
14
 And I follow "Groups"
 And I follow "Create group"
 And I set the following fields to these values:
 | Group name | The Avengers |
 And I press "Save group"
15
 And I follow "Edit \"The Avengers\" Settings"
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 # Checking all the switches can all be changed
 And I set the following fields to these values:
 | Open | 0 |
 | Controlled | 1 |
 | Request | 1 |
 | Friend invitations | 1 |
 | Recommendations | 0 |
 | Allow submissions | 1 |
 | Allow archiving of submissions | 1 |
 | Publicly viewable group | 1 |
 | Hide group | 1 |
 | Hide membership | 1 |
 | Hide membership from members | 1 |
 | Participation report | 1 |
 | Auto-add users | 1 |
 | Send forum posts immediately | 1 |
 And I press "Save group"
33
 And I follow "Edit \"The Avengers\" Settings"
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
 # Checking all the switches can all be changed back
 And I set the following fields to these values:
 | Open | 1 |
 | Controlled | 0 |
 | Request | 0 |
 | Friend invitations | 0 |
 | Recommendations | 0 |
 | Allow submissions | 0 |
 | Allow archiving of submissions | 0 |
 | Publicly viewable group | 0 |
 | Hide group | 0 |
 | Hide membership | 0 |
 | Hide membership from members | 0 |
 | Participation report | 0 |
 | Auto-add users | 0 |
 # Checking Friend Invitation and Recommendations cant both be on
Son Nguyen's avatar
Son Nguyen committed
50
 And I enable the switch "Friend invitations"
51
 And the "Recommendations" checkbox should not be checked
Son Nguyen's avatar
Son Nguyen committed
52
 And I enable the switch "Recommendations"
53
54
 And the "Friend invitations" checkbox should not be checked
 And I press "Save group"