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
end
def merge_immediately
wait(reload: false, max: 60) do
has_merge_options?
wait(reload: false) do
finished_loading?
end
if has_merge_options?
if has_no_element? :merge_immediately_option
retry_until do
click_element :merge_moment_dropdown
has_element? :merge_immediately_option
end
retry_until do
click_element :merge_moment_dropdown
has_element? :merge_immediately_option
end
click_element :merge_immediately_option
......@@ -108,7 +106,7 @@ module QA
click_element :merge_button
end
wait(reload: false, max: 60) do
wait(reload: false) do
merged?
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