Commit 213b70e2 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'tmslvnkc/qa/page_object/merge_request' into 'master'

Cleaning up merge request PO

See merge request gitlab-org/gitlab!21625
parents ef898545 e09e82a3
...@@ -91,16 +91,14 @@ module QA ...@@ -91,16 +91,14 @@ module QA
end end
def merge_immediately def merge_immediately
wait(reload: false, max: 60) do wait(reload: false) do
has_merge_options? finished_loading?
end end
if has_merge_options? if has_merge_options?
if has_no_element? :merge_immediately_option retry_until do
retry_until do click_element :merge_moment_dropdown
click_element :merge_moment_dropdown has_element? :merge_immediately_option
has_element? :merge_immediately_option
end
end end
click_element :merge_immediately_option click_element :merge_immediately_option
...@@ -108,7 +106,7 @@ module QA ...@@ -108,7 +106,7 @@ module QA
click_element :merge_button click_element :merge_button
end end
wait(reload: false, max: 60) do wait(reload: false) do
merged? merged?
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