Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
5c06efd6
Commit
5c06efd6
authored
Mar 26, 2015
by
Jinelle Foley-Barnes
Committed by
Gerrit Code Review
Apr 01, 2015
Browse files
Behat Test: Switches on edit group (Bug 1431569)
Change-Id: Ibcd1f3161d779412b16a133222220aef815f8ae4
parent
6c247959
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/group/switches_edit_group.feature
0 → 100644
View file @
5c06efd6
@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)
Given
I log in as
"admin"
with password
"Password1"
And
I follow
"Groups"
And
I follow
"Create group"
And I set the following fields to these values
:
|
Group
name
|
The
Avengers
|
# Checking all the switches are set to their correct default
And the following fields match these values
:
|
Open
|
1
|
|
Controlled
|
0
|
|
Request
|
0
|
|
Friend
invitations
|
0
|
|
Recommendations
|
0
|
|
Roles
|
Standard:
Member,
Admin
|
|
Create
and
edit
pages
|
All
group
members
|
|
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
|
|
Shared
page
notifications
|
All
group
members
|
|
Feedback
notifications
|
All
group
members
|
|
Send
forum
posts
immediately
|
0
|
And
I press
"Save group"
And
I follow
"Edit group"
# 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"
And
I follow
"Edit group"
# 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
And
I check
"Friend invitations"
And
the
"Recommendations"
checkbox should not be checked
And
I check
"Recommendations"
And
the
"Friend invitations"
checkbox should not be checked
And
I press
"Save group"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment