Commit 7aa2ccc5 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'improve-page-object-method' into 'master'

Improve page object method

See merge request gitlab-org/gitlab!23513
parents 52b9a1cd 970a8e2e
...@@ -33,7 +33,7 @@ module QA ...@@ -33,7 +33,7 @@ module QA
end end
def add_issue_to_epic(issue_url) def add_issue_to_epic(issue_url)
find_element(:issue_actions_split_button).find_all('button').first.click find_element(:issue_actions_split_button).find('button', text: 'Add an issue').click
fill_element :add_issue_input, issue_url fill_element :add_issue_input, issue_url
click_body click_body
click_element :add_issue_button click_element :add_issue_button
......
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