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
Jérome Perrin
gitlab-ce
Commits
2fe0d9f2
Commit
2fe0d9f2
authored
Apr 22, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test to prevent ‘Request access’ regression
parent
8e156d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/features/projects/members/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 @
2fe0d9f2
...
@@ -31,6 +31,17 @@ feature 'Projects > Members > User requests access', feature: true do
...
@@ -31,6 +31,17 @@ feature 'Projects > Members > User requests access', feature: true do
expect
(
page
).
not_to
have_content
'Leave Project'
expect
(
page
).
not_to
have_content
'Leave Project'
end
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
scenario
'user is not listed in the project members page'
do
click_link
'Request Access'
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