Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
fcf332a4
Commit
fcf332a4
authored
Dec 09, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group links spec update
parent
1637ce4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
features/steps/project/team_management.rb
features/steps/project/team_management.rb
+1
-1
spec/features/projects/members/group_links_spec.rb
spec/features/projects/members/group_links_spec.rb
+7
-2
No files found.
features/steps/project/team_management.rb
View file @
fcf332a4
...
@@ -148,7 +148,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
...
@@ -148,7 +148,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
step
'I should see "Opensource" group user listing'
do
step
'I should see "Opensource" group user listing'
do
page
.
within
'.project-members-groups'
do
page
.
within
'.project-members-groups'
do
expect
(
page
).
to
have_content
(
'OpenSource'
)
expect
(
page
).
to
have_content
(
'OpenSource'
)
expect
(
fi
nd
(
'select'
).
value
).
to
eq
(
'40
'
)
expect
(
fi
rst
(
'.group_member'
)).
to
have_content
(
'Master
'
)
end
end
end
end
end
end
spec/features/projects/members/group_links_spec.rb
View file @
fcf332a4
...
@@ -16,12 +16,17 @@ feature 'Projects > Members > Anonymous user sees members', feature: true, js: t
...
@@ -16,12 +16,17 @@ feature 'Projects > Members > Anonymous user sees members', feature: true, js: t
end
end
it
'updates group access level'
do
it
'updates group access level'
do
select
'Guest'
,
from:
"member_access_level_
#{
group
.
id
}
"
click_button
@group_link
.
human_access
page
.
within
'.dropdown-menu'
do
click_link
'Guest'
end
wait_for_ajax
wait_for_ajax
visit
namespace_project_project_members_path
(
project
.
namespace
,
project
)
visit
namespace_project_project_members_path
(
project
.
namespace
,
project
)
expect
(
page
).
to
have_select
(
"member_access_level_
#{
group
.
id
}
"
,
selected:
'Guest'
)
expect
(
first
(
'.group_member'
)).
to
have_content
(
'Guest'
)
end
end
it
'updates expiry date'
do
it
'updates expiry date'
do
...
...
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