From 25ad3b7617ba052c3aaa34ac3a830ca91b9c60d2 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Tue, 3 Oct 2017 16:24:22 +0200 Subject: Make the `QA:Page::Project::Show` driver less brittle This allows the test to continue even if the GitLab instance being tested, or the user being used, had SSH access configured. --- qa/qa/page/project/show.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb index 56a270d8fcc..68d9597c4d2 100644 --- a/qa/qa/page/project/show.rb +++ b/qa/qa/page/project/show.rb @@ -5,8 +5,8 @@ module QA def choose_repository_clone_http find('#clone-dropdown').click - page.within('#clone-dropdown') do - find('span', text: 'HTTP').click + page.within('.clone-options-dropdown') do + click_link('HTTP') end end -- cgit v1.2.1