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
b91b6418
Commit
b91b6418
authored
Jan 09, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add QA selectors coupling with sidebar menu
parent
ffd109af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+1
-1
qa/qa/page/menu/side.rb
qa/qa/page/menu/side.rb
+7
-1
No files found.
app/views/layouts/nav/sidebar/_project.html.haml
View file @
b91b6418
...
@@ -226,7 +226,7 @@
...
@@ -226,7 +226,7 @@
=
link_to
edit_project_path
(
@project
),
class:
'shortcuts-tree'
do
=
link_to
edit_project_path
(
@project
),
class:
'shortcuts-tree'
do
.nav-icon-container
.nav-icon-container
=
sprite_icon
(
'settings'
)
=
sprite_icon
(
'settings'
)
%span
.nav-item-name
%span
.nav-item-name
.qa-settings-item
Settings
Settings
%ul
.sidebar-sub-level-items
%ul
.sidebar-sub-level-items
...
...
qa/qa/page/menu/side.rb
View file @
b91b6418
...
@@ -2,6 +2,12 @@ module QA
...
@@ -2,6 +2,12 @@ module QA
module
Page
module
Page
module
Menu
module
Menu
class
Side
<
Page
::
Base
class
Side
<
Page
::
Base
view
'app/views/layouts/nav/sidebar/_project.html.haml'
do
element
:settings_item
element
:repository_link
,
"title: 'Repository'"
element
:top_level_items
,
'.sidebar-top-level-items'
end
def
click_repository_setting
def
click_repository_setting
hover_setting
do
hover_setting
do
click_link
(
'Repository'
)
click_link
(
'Repository'
)
...
@@ -12,7 +18,7 @@ module QA
...
@@ -12,7 +18,7 @@ module QA
def
hover_setting
def
hover_setting
within_sidebar
do
within_sidebar
do
find
(
'.
nav-item-name'
,
text:
'Settings
'
).
hover
find
(
'.
qa-settings-item
'
).
hover
yield
yield
end
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