diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/features/groups/navbar_spec.rb | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/features/groups/navbar_spec.rb')
-rw-r--r-- | spec/features/groups/navbar_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/groups/navbar_spec.rb b/spec/features/groups/navbar_spec.rb index e81f2370d10..dec07eb3783 100644 --- a/spec/features/groups/navbar_spec.rb +++ b/spec/features/groups/navbar_spec.rb @@ -50,6 +50,8 @@ RSpec.describe 'Group navbar' do insert_package_nav(_('Kubernetes')) stub_feature_flags(group_iterations: false) + stub_config(dependency_proxy: { enabled: false }) + stub_config(registry: { enabled: false }) stub_group_wikis(false) group.add_maintainer(user) sign_in(user) @@ -73,6 +75,18 @@ RSpec.describe 'Group navbar' do it_behaves_like 'verified navigation bar' end + context 'when dependency proxy is available' do + before do + stub_config(dependency_proxy: { enabled: true }) + + insert_dependency_proxy_nav(_('Dependency Proxy')) + + visit group_path(group) + end + + it_behaves_like 'verified navigation bar' + end + context 'when invite team members is not available' do it 'does not display the js-invite-members-trigger' do visit group_path(group) |