BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0aa5f089
Unverified
Commit
0aa5f089
authored
Jun 26, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move another group member spec from spinach
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
69043814
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
members.feature
features/group/members.feature
+0
-7
manage_members.rb
spec/features/groups/members/manage_members.rb
+17
-0
No files found.
features/group/members.feature
View file @
0aa5f089
...
...
@@ -4,13 +4,6 @@ Feature: Group Members
And
"John
Doe"
is
owner
of
group
"Owned"
And
"John
Doe"
is
guest
of
group
"Guest"
Scenario
:
Guest should not be able to remove other users from group
Given "Mary Jane" is guest of group "Guest"
When
I visit group
"Guest"
members page
Then
I should see user
"John Doe"
in team list
Then
I should see user
"Mary Jane"
in team list
Then
I should not see the
"Remove User From Group"
button for
"Mary Jane"
Scenario
:
Search member by name
Given "Mary Jane" is guest of group "Guest"
And
I visit group
"Guest"
members page
...
...
spec/features/groups/members/manage_members.rb
View file @
0aa5f089
...
...
@@ -77,6 +77,23 @@ feature 'Groups > Members > Manage members', feature: true do
end
end
scenario
'guest can not manage other users'
do
group
.
add_guest
(
user1
)
group
.
add_developer
(
user2
)
visit
group_group_members_path
(
group
)
expect
(
page
).
not_to
have_button
'Add to group'
page
.
within
(
second_row
)
do
# Can not modify user2 role
expect
(
page
).
not_to
have_button
'Developer'
# Can not remove user2
expect
(
page
).
not_to
have_css
(
'a.btn-remove'
)
end
end
def
first_row
page
.
all
(
'ul.content-list > li'
)[
0
]
end
...
...
Write
Preview
Markdown
is supported
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