Commit 65152cb3 authored by Douwe Maan's avatar Douwe Maan

Merge branch '29335-fix-request-access-button-visibility' into 'master'

Added test to prevent ‘Request access’ regression

See merge request !10866
parents a77765e1 2fe0d9f2
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment