Commit 970a8e2e authored by Walmyr Lima's avatar Walmyr Lima

Improve page object method

This way we make it more robust by making sure we're clicking in
the right element.
parent 9a2dafa4
...@@ -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