From 104d5af8ba63aa5c284c260dc207e7ddb9e1a918 Mon Sep 17 00:00:00 2001 From: Felipe Artur Date: Wed, 14 Feb 2018 11:53:37 -0200 Subject: [PATCH] Wait for create merge request button to appear --- qa/qa/page/project/show.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb index b603557f59c..0c7ad46d36b 100644 --- a/qa/qa/page/project/show.rb +++ b/qa/qa/page/project/show.rb @@ -45,6 +45,10 @@ module QA end def new_merge_request + wait(reload: true) do + has_css?(element_selector_css(:create_merge_request)) + end + click_element :create_merge_request end