Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ff0e62de
Commit
ff0e62de
authored
Mar 31, 2022
by
orozot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor navbar_shared_examples to fix the jh job failed
parent
e3d05294
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
spec/support/helpers/navbar_structure_helper.rb
spec/support/helpers/navbar_structure_helper.rb
+12
-0
spec/support/shared_contexts/navbar_structure_context.rb
spec/support/shared_contexts/navbar_structure_context.rb
+3
-7
No files found.
spec/support/helpers/navbar_structure_helper.rb
View file @
ff0e62de
...
...
@@ -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
spec/support/shared_contexts/navbar_structure_context.rb
View file @
ff0e62de
# 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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment