Commit d6189a28 authored by Walmyr Lima's avatar Walmyr Lima

Refactor test method

- To expose epic web URL
- and to navigate always to the first epic in the epics page
parent adb164a8
...@@ -98,10 +98,12 @@ module QA ...@@ -98,10 +98,12 @@ module QA
epic.title = 'Epic created via API' epic.title = 'Epic created via API'
end end
# Epics have no web_url exposed via the API, and so we build it here. page.visit "#{@issue.project.group.web_url}/-/epics/"
# Related issue: https://gitlab.com/gitlab-org/gitlab-ee/issues/11241
@epic_web_url = "#{@issue.project.group.web_url}/-/epics/1" EE::Page::Group::Epic::Index.perform do |epic_index_page|
page.visit @epic_web_url @epic_web_url = epic_index_page.web_url
epic_index_page.click_first_epic
end
end end
end end
end end
......
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