Skip to content
Snippets Groups Projects
Commit 3411a838 authored by asoborov's avatar asoborov
Browse files

Replaced string matchers with element matchers

parent 676b89f5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -86,7 +86,7 @@
 
- if project_nav_tab? :issues
= nav_link(controller: @project.issues_enabled? ? [:issues, :labels, :milestones, :boards] : :issues) do
= link_to project_issues_path(@project), class: 'shortcuts-issues' do
= link_to project_issues_path(@project), class: 'shortcuts-issues qa-issues-item' do
.nav-icon-container
= sprite_icon('issues')
%span.nav-item-name
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@ module QA
def fabricate!
project.visit!
 
Page::Menu::Side.act { go_to_labels }
Page::Project::Menu.act { go_to_labels }
Page::Label::Index.act { go_to_new_label }
 
Page::Label::New.perform do |page|
Loading
Loading
Loading
Loading
@@ -106,14 +106,14 @@ module QA
end
 
def go_to_labels
hover_issues { click_link 'Labels' }
hover_issues { click_element :labels_link }
end
 
private
 
def hover_issues
within_sidebar do
find('.shortcuts-issues').hover
find_element(:issues_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