create_and_delete_groups.feature 2.3 KB
Newer Older
1
@javascript @core @core_group
2
3
4
5
6
7
8
Feature: Delete groups
    In order to delete a group
    As an admin I need to create groups
    So I can verify they can be deleted successfully

Scenario: Creating groups and deleting them (Selenium)
    # Log in as "Admin" user
9
    Given I log in as "admin" with password "Kupuhipa1"
10
    # Create a Friend invitation only group
11
    And I choose "Groups" from main menu
12
13
    And I follow "Create group"
    And I fill in "Group name" with "Admin Test Group"
Son Nguyen's avatar
Son Nguyen committed
14
15
    And I disable the switch "Open"
    And I enable the switch "Friend invitations"
16
    And I press "Save group"
17
    # Create Request only group
18
    And I choose "Groups" from main menu
19
20
    And I follow "Create group"
    And I fill in "Group name" with "Admin VIP Group"
Son Nguyen's avatar
Son Nguyen committed
21
22
    And I disable the switch "Open"
    And I enable the switch "Request"
23
    And I press "Save group"
24
    # Create Open group
25
    And I choose "Groups" from main menu
26
27
    And I follow "Create group"
    And I fill in "Group name" with "Public discussion"
28
    And I enable the switch "Participation report"
29
    And I press "Save group"
30
    # Create Controlled group
31
    And I choose "Groups" from main menu
32
33
    And I follow "Create group"
    And I fill in "Group name" with "Controlled groups"
Son Nguyen's avatar
Son Nguyen committed
34
35
    And I disable the switch "Open"
    And I enable the switch "Controlled"
36
    And I press "Save group"
37
38
39
40
41
42
    # Check if the group report page is there
    And I choose "Groups" from main menu
    And I follow "Public discussion"
    And I follow "Report" in the ".arrow-bar" "css_element"
    Then I should see "There are no pages shared with this group yet"
    # Checking groups exist and can be deleted
43
    And I choose "Groups" from main menu
44
    And I follow "Admin Test Group"
45
    And I follow "Delete \"Admin Test Group\""
46
47
    And I press "Yes"
    And I follow "Controlled groups"
48
    And I follow "Delete \"Controlled groups\""
49
50
    And I press "Yes"
    And I follow "Admin VIP Group"
51
    And I follow "Delete \"Admin VIP Group\""
52
53
    And I press "Yes"
    And I follow "Public discussion"
54
    And I follow "Delete \"Public discussion\""
55
56
57
58
59
60
    And I press "Yes"
    # Verifying none of the deleted groups can be seen
    And I should not see "Admin Test Group"
    And I should not see "Controlled groups"
    And I should not see "Admin VIP Group"
    And I should not see "Public discussion"