summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-13 00:08:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-13 00:08:05 +0000
commit47b8f79a0896f406008d5a7eda2781f8da301e91 (patch)
tree1f15328719ca1215a2bd0ec6650ece0ca59de3f4 /qa
parent52fe64b740a4ddbd5b085386dfe40fea191174ea (diff)
downloadgitlab-ce-47b8f79a0896f406008d5a7eda2781f8da301e91.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/merge_request/show.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/qa/qa/page/merge_request/show.rb b/qa/qa/page/merge_request/show.rb
index 9ad53636c42..198699c2fee 100644
--- a/qa/qa/page/merge_request/show.rb
+++ b/qa/qa/page/merge_request/show.rb
@@ -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