Commit 1669ee8b authored by Walmyr Lima's avatar Walmyr Lima

Add web_url method on epic index page

parent 95a4159c
...@@ -32,6 +32,13 @@ module QA ...@@ -32,6 +32,13 @@ module QA
all_elements(:epic_title_text).first.click all_elements(:epic_title_text).first.click
page.validate_elements_present! if page page.validate_elements_present! if page
end end
# This is a workaround to get the URL of the first epic
# since this attribute is not exposed by the API.
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/11241.
def web_url
page.all('.qa-epic-title-text a').first[:href]
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