Commit 664c0e27 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'fix-performance-analytics-upstream-test' into 'master'

Refactor navbar_shared_examples to fix the jh job failed

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