summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-29 13:58:44 +0000
committerRémy Coutable <remy@rymai.me>2018-01-29 13:58:44 +0000
commitfca48225c3e7725431838a9d334c078e38e590dd (patch)
treed7b1682be8c37421838167f8726c4b88573a3269 /qa
parent85e6ffb597c55d7ca5f059325a5af2d7562acae8 (diff)
parent25cd25fc40b3178530f62755158ecd047d8a0b49 (diff)
downloadgitlab-ce-fca48225c3e7725431838a9d334c078e38e590dd.tar.gz
Merge branch 'qa/mk-fix-intermittent-clone-failure' into 'master'
[CE backport] Fix intermittent clone failure in QA See merge request gitlab-org/gitlab-ce!16739
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/show.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb
index 24eb29ceb4c..75308ae8a3c 100644
--- a/qa/qa/page/project/show.rb
+++ b/qa/qa/page/project/show.rb
@@ -3,11 +3,9 @@ module QA
module Project
class Show < Page::Base
view 'app/views/shared/_clone_panel.html.haml' do
+ element :clone_holder, '.git-clone-holder'
element :clone_dropdown
element :clone_options_dropdown, '.clone-options-dropdown'
- end
-
- view 'app/views/shared/_clone_panel.html.haml' do
element :project_repository_location, 'text_field_tag :project_clone'
end
@@ -20,10 +18,15 @@ module QA
end
def choose_repository_clone_http
- click_element :clone_dropdown
+ wait(reload: false) do
+ click_element :clone_dropdown
+
+ page.within('.clone-options-dropdown') do
+ click_link('HTTP')
+ end
- page.within('.clone-options-dropdown') do
- click_link('HTTP')
+ # Ensure git clone textbox was updated to http URI
+ page.has_css?('.git-clone-holder input#project_clone[value*="http"]')
end
end