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
e54f8d25
Commit
e54f8d25
authored
Aug 16, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
Aug 16, 2018
Browse files
Merge "Bug 1783425: Behat test for copying pages to existing group members"
parents
06bd690f
a4d439e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/site_content/group_copy_existing.feature
0 → 100644
View file @
e54f8d25
@javascript
@core
@core_group
Feature
:
Group admin can push Group portfolio pages and collections to existing Group members
Background
:
Given the following "institutions" exist
:
|
name
|
displayname
|
registerallowed
|
registerconfirm
|
|
instone
|
Institution
One
|
ON
|
OFF
|
|
insttwo
|
Institution
Two
|
ON
|
OFF
|
And the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
UserA
|
Kupuh1pa!
|
UserA@example.org
|
Angela
|
User
|
instone
|
internal
|
staff
|
|
UserB
|
Kupuh1pa!
|
UserB@example.org
|
Bob
|
User
|
instone
|
internal
|
member
|
|
UserC
|
Kupuh1pa!
|
UserC@example.org
|
Cecilia
|
User
|
instone
|
internal
|
member
|
And the following "groups" exist
:
|
name
|
owner
|
description
|
grouptype
|
open
|
invitefriends
|
editroles
|
submittableto
|
allowarchives
|
members
|
staff
|
|
GroupA
|
UserA
|
GroupA
owned
by
UserA
|
standard
|
ON
|
OFF
|
all
|
ON
|
OFF
|
UserB,
UserA
|
UserA
|
|
GroupC
|
UserC
|
GroupC
owned
by
UserC
|
standard
|
ON
|
OFF
|
all
|
OFF
|
OFF
|
UserC
|
UserC
|
And the following "pages" exist
:
|
title
|
description
|
ownertype
|
ownername
|
|
Page
GroupA_01
|
Group
page
01
|
group
|
GroupA
|
|
Page
GroupA_02
|
Group
page
02
|
group
|
GroupA
|
|
Page
GroupA_03
|
Group
page
03
|
group
|
GroupA
|
And the following "collections" exist
:
|
title
|
description
|
ownertype
|
ownername
|
pages
|
|
Collection
GroupA_01
|
Collection
01
|
group
|
GroupA
|
Page
GroupA_02,
Page
GroupA_03
|
Scenario
:
Group admin pushes a Group page and collection to existing group members (Bug 1763163)
# Log in as GroupA admin (UserA)
Given
I log in as
"UserA"
with password
"Kupuh1pa!"
# Verifying log in was successful
And
I should see
"Angela"
# Browse to the Share > Advanced options
When
I choose
"My groups"
in
"Groups"
from main menu
And
I click on
"GroupA"
And
I follow
"Share (tab)"
And
I click on
"Edit access"
in
"Collection GroupA_01"
row
And
I click on
"Advanced options"
# verify field lalel is displayed on page
Then
I should see
"Copy for existing group members"
# enable the "Copy for existing group members" toggle
And
I enable the switch
"Copy for existing group members"
And
I click on
"Save"
And
I follow
"Pages"
And
I click on
"Edit access"
in
"Page GroupA_01"
row
And
I follow
"Advanced options"
# verify field lalel is displayed on page
Then
I should see
"Copy for existing group members"
# enable the "Copy for existing group members" toggle
And
I enable the switch
"Copy for existing group members"
And
I click on
"Save"
And
I log out
# Group members (UserB) should have their Portfolios updated
Given
I log in as
"UserB"
with password
"Kupuh1pa!"
And
I choose
"Pages and collections"
in
"Portfolio"
from main menu
# verify a group member has their Portfolio updated with the Group pages
Then
I should see
"Page GroupA_01"
And
I should see
"Collection GroupA_01"
And
I log out
# Non group members (UserC) should not have their Protfolios updated
Given
I log in as
"UserC"
with password
"Kupuh1pa!"
And
I choose
"Pages and collections"
in
"Portfolio"
from main menu
# verify a group member has their Pportfolio updated with the Group pages
Then
I should not see
"Page GroupA_01"
And
I should not see
"Collection GroupA_01"
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