Skip to content
Snippets Groups Projects
Commit b91b6418 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Add QA selectors coupling with sidebar menu

parent ffd109af
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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')
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment