Commit 2a792f1e authored by Rémy Coutable's avatar Rémy Coutable

[QA] Move epic-related method to EE class

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 53b14341
......@@ -4,7 +4,7 @@
- epics_items = ['epics#show', 'epics#index', 'roadmap#show']
= nav_link(path: epics_items) do
= link_to group_epics_path(group) do
= link_to group_epics_path(group), class: 'qa-group-epics-link' do
.nav-icon-container
= sprite_icon('epic')
%span.nav-item-name
......
......@@ -12,9 +12,9 @@ module QA
def fabricate!
group.visit!
QA::Page::Project::Menu.act { click_epics }
QA::EE::Page::Group::Menu.perform { |menu| menu.go_to_group_epics }
Page::Group::Epic::Index.perform do |page|
QA::EE::Page::Group::Epic::Index.perform do |page|
page.click_new_epic
page.set_title(@title)
page.create_new_epic
......
......@@ -15,14 +15,24 @@ module QA
element :group_settings_item
end
view 'ee/app/views/layouts/nav/ee/_epic_link.html.haml' do
element :group_epics_link
end
def go_to_saml_sso_group_settings
hover_settings do
within_submenu do
click_element :group_saml_sso_link
click_element(:group_saml_sso_link)
end
end
end
def go_to_group_epics
within_sidebar do
click_element(:group_epics_link)
end
end
private
def hover_settings
......
......@@ -119,12 +119,6 @@ module QA
end
end
def click_epics
within_sidebar do
click_link('Epics')
end
end
private
def hover_issues
......
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