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
65152cb3
Commit
65152cb3
authored
Apr 24, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '29335-fix-request-access-button-visibility' into 'master'
Added test to prevent ‘Request access’ regression See merge request !10866
parents
a77765e1
2fe0d9f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
user_requests_access_spec.rb
spec/features/projects/members/user_requests_access_spec.rb
+11
-0
No files found.
spec/features/projects/members/user_requests_access_spec.rb
View file @
65152cb3
...
...
@@ -31,6 +31,17 @@ feature 'Projects > Members > User requests access', feature: true do
expect
(
page
).
not_to
have_content
'Leave Project'
end
context
'code access is restricted'
do
scenario
'user can request access'
do
project
.
project_feature
.
update!
(
repository_access_level:
ProjectFeature
::
PRIVATE
,
builds_access_level:
ProjectFeature
::
PRIVATE
,
merge_requests_access_level:
ProjectFeature
::
PRIVATE
)
visit
namespace_project_path
(
project
.
namespace
,
project
)
expect
(
page
).
to
have_content
'Request Access'
end
end
scenario
'user is not listed in the project members page'
do
click_link
'Request Access'
...
...
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