Commit b91b6418 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add QA selectors coupling with sidebar menu

parent ffd109af
...@@ -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
......
...@@ -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
......
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