From e9a128b5742efdf16116f5bc86a66322d9d20b89 Mon Sep 17 00:00:00 2001 From: Walmyr Lima Date: Mon, 26 Aug 2019 18:12:36 +0200 Subject: Update view to add testability --- app/views/layouts/nav/sidebar/_project.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index 02ecf816e90..48fea2bbecf 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -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 -- cgit v1.2.1 From a9cae447f11b0e6a6a7c060f04dfe9ac5e65ef7e Mon Sep 17 00:00:00 2001 From: Walmyr Lima Date: Mon, 26 Aug 2019 18:13:12 +0200 Subject: Update issues submenu With a new element and a new method to go to issue boards. --- qa/qa/page/project/sub_menus/issues.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qa/qa/page/project/sub_menus/issues.rb b/qa/qa/page/project/sub_menus/issues.rb index 8fb8fa06346..d27a250a300 100644 --- a/qa/qa/page/project/sub_menus/issues.rb +++ b/qa/qa/page/project/sub_menus/issues.rb @@ -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 -- cgit v1.2.1