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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
519cb757
Commit
519cb757
authored
Jan 16, 2019
by
James Fargher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try use elements for all project menu nav in qa
parent
aea036c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+1
-1
qa/qa/page/project/menu.rb
qa/qa/page/project/menu.rb
+5
-5
No files found.
app/views/layouts/nav/sidebar/_project.html.haml
View file @
519cb757
...
...
@@ -201,7 +201,7 @@
-
if
project_nav_tab?
:operations
=
nav_link
(
controller:
sidebar_operations_paths
)
do
=
link_to
sidebar_operations_link_path
,
class:
'shortcuts-operations'
do
=
link_to
sidebar_operations_link_path
,
class:
'shortcuts-operations
qa-link-operations
'
do
.nav-icon-container
=
sprite_icon
(
'cloud-gear'
)
%span
.nav-item-name
...
...
qa/qa/page/project/menu.rb
View file @
519cb757
...
...
@@ -9,6 +9,7 @@ module QA
element
:settings_link
,
'link_to edit_project_path'
# rubocop:disable QA/ElementWithPattern
element
:repository_link
,
"title: _('Repository')"
# rubocop:disable QA/ElementWithPattern
element
:link_pipelines
element
:link_operations
element
:link_members_settings
element
:pipelines_settings_link
,
"title: _('CI / CD')"
# rubocop:disable QA/ElementWithPattern
element
:operations_kubernetes_link
,
"title: _('Kubernetes')"
# rubocop:disable QA/ElementWithPattern
...
...
@@ -18,7 +19,6 @@ module QA
element
:merge_requests_link
,
/link_to.*shortcuts-merge_requests/
# rubocop:disable QA/ElementWithPattern
element
:merge_requests_link_text
,
"Merge Requests"
# rubocop:disable QA/ElementWithPattern
element
:top_level_items
,
'.sidebar-top-level-items'
# rubocop:disable QA/ElementWithPattern
element
:operations_section
,
"class: 'shortcuts-operations'"
# rubocop:disable QA/ElementWithPattern
element
:activity_link
,
"title: _('Activity')"
# rubocop:disable QA/ElementWithPattern
element
:wiki_link_text
,
"Wiki"
# rubocop:disable QA/ElementWithPattern
element
:milestones_link
...
...
@@ -138,8 +138,8 @@ module QA
def
hover_operations
within_sidebar
do
scroll_to
(
'.shortcuts-operations'
)
find
(
'.shortcuts-operations'
).
hover
scroll_to
_element
(
:link_operations
)
find
_element
(
:link_operations
).
hover
yield
end
...
...
@@ -147,8 +147,8 @@ module QA
def
hover_settings
within_sidebar
do
scroll_to
(
'.qa-settings-item'
)
find
(
'.qa-settings-item'
).
hover
scroll_to
_element
(
:settings_item
)
find
_element
(
:settings_item
).
hover
yield
end
...
...
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