Commit 3aebf9c0 authored by Eduardo Schicker's avatar Eduardo Schicker Committed by Robert Lyon
Browse files

Behat test (Selenium): Deleting groups



Creating groups with various controlled selttings and deleting them

Change-Id: I48700b43e0b8f7a72967b2a37993e2e55e141bf0
Signed-off-by: default avatarJinelle Foley-Barnes <jinelleb@catalyst.net.nz>
parent f6873e78
@javascript @core @core_groups
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
Given I log in as "admin" with password "Password1"
# Verifying log in was successful
And I should see "Admin User"
# Creating 4 types of groups
When I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin Test Group"
And I uncheck "Open"
And I check "Friend invitations"
And I press "Save group"
# Verifying group saved
And I should see "Group saved successfully"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Admin VIP Group"
And I uncheck "Open"
And I check "Request"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Public discussion"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
And I follow "Groups"
And I follow "Create group"
And I fill in "Group name" with "Controlled groups"
And I uncheck "Open"
And I check "Controlled"
And I press "Save group"
# Verifing group saved
And I should see "Group saved successfully"
# Deleting groups and verifying they are deleted
Then I follow "Groups"
And I follow "Admin Test Group"
And I follow "Delete group"
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Controlled groups"
And I follow "Delete group"
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Admin VIP Group"
And I follow "Delete group"
And I press "Yes"
And I should see "Group deleted successfully"
And I follow "Public discussion"
And I follow "Delete group"
And I press "Yes"
And I should see "Group deleted successfully"
# 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"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment