Commit b91b6418 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add QA selectors coupling with sidebar menu

parent ffd109af
......@@ -226,7 +226,7 @@
= link_to edit_project_path(@project), class: 'shortcuts-tree' do
.nav-icon-container
= sprite_icon('settings')
%span.nav-item-name
%span.nav-item-name.qa-settings-item
Settings
%ul.sidebar-sub-level-items
......
......@@ -2,6 +2,12 @@ module QA
module Page
module Menu
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
hover_setting do
click_link('Repository')
......@@ -12,7 +18,7 @@ module QA
def hover_setting
within_sidebar do
find('.nav-item-name', text: 'Settings').hover
find('.qa-settings-item').hover
yield
end
......
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