Commit 6b107790 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa/issue-boards-navigation' into 'master'

Update view for testability and update page object

See merge request gitlab-org/gitlab-ce!32224
parents 27c222d1 a9cae447
......@@ -115,7 +115,7 @@
= _('List')
= nav_link(controller: :boards) do
= link_to project_boards_path(@project), title: boards_link_text do
= link_to project_boards_path(@project), title: boards_link_text, data: { qa_selector: "issue_boards_link" } do
%span
= boards_link_text
......
......@@ -10,6 +10,7 @@ module QA
def self.included(base)
base.class_eval do
view 'app/views/layouts/nav/sidebar/_project.html.haml' do
element :issue_boards_link
element :issues_item
element :labels_link
element :milestones_link
......@@ -29,6 +30,14 @@ module QA
end
end
def go_to_boards
hover_issues do
within_submenu do
click_element(:issue_boards_link)
end
end
end
def go_to_labels
hover_issues do
within_submenu do
......
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