diff options
Diffstat (limited to 'spec/features/projects/navbar_spec.rb')
-rw-r--r-- | spec/features/projects/navbar_spec.rb | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/spec/features/projects/navbar_spec.rb b/spec/features/projects/navbar_spec.rb index 023601b0b1e..e07a5d09405 100644 --- a/spec/features/projects/navbar_spec.rb +++ b/spec/features/projects/navbar_spec.rb @@ -49,7 +49,7 @@ RSpec.describe 'Project navbar' do stub_config(pages: { enabled: true }) insert_after_sub_nav_item( - _('CI/CD'), + _('Packages & Registries'), within: _('Settings'), new_sub_nav_item_name: _('Pages') ) @@ -60,18 +60,22 @@ RSpec.describe 'Project navbar' do it_behaves_like 'verified navigation bar' end + context 'when package registry is available' do + before do + stub_config(packages: { enabled: true }) + + visit project_path(project) + end + + it_behaves_like 'verified navigation bar' + end + context 'when container registry is available' do before do stub_config(registry: { enabled: true }) insert_container_nav - insert_after_sub_nav_item( - _('CI/CD'), - within: _('Settings'), - new_sub_nav_item_name: _('Packages & Registries') - ) - visit project_path(project) end |