Commit ff0e62de authored by orozot's avatar orozot

Refactor navbar_shared_examples to fix the jh job failed

parent e3d05294
......@@ -92,4 +92,16 @@ module NavbarStructureHelper
new_sub_nav_item_name: _('Google Cloud')
)
end
def analytics_sub_nav_item
[
_('Value stream'),
_('CI/CD'),
(_('Code review') if Gitlab.ee?),
(_('Merge request') if Gitlab.ee?),
_('Repository')
]
end
end
NavbarStructureHelper.prepend_mod
# frozen_string_literal: true
RSpec.shared_context 'project navbar structure' do
include NavbarStructureHelper
let(:security_and_compliance_nav_item) do
{
nav_item: _('Security & Compliance'),
......@@ -93,13 +95,7 @@ RSpec.shared_context 'project navbar structure' do
},
{
nav_item: _('Analytics'),
nav_sub_items: [
_('Value stream'),
_('CI/CD'),
(_('Code review') if Gitlab.ee?),
(_('Merge request') if Gitlab.ee?),
_('Repository')
]
nav_sub_items: analytics_sub_nav_item
},
{
nav_item: _('Wiki'),
......
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