Skip to content
Snippets Groups Projects
Commit 2fe0d9f2 authored by James Edwards-Jones's avatar James Edwards-Jones
Browse files

Added test to prevent ‘Request access’ regression

parent 8e156d66
No related branches found
No related tags found
No related merge requests found
Loading
@@ -31,6 +31,17 @@ feature 'Projects > Members > User requests access', feature: true do
Loading
@@ -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'
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment