summaryrefslogtreecommitdiff
path: root/spec/support/helpers/features/branches_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/features/branches_helpers.rb')
-rw-r--r--spec/support/helpers/features/branches_helpers.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/support/helpers/features/branches_helpers.rb b/spec/support/helpers/features/branches_helpers.rb
index d4f96718cc0..dc4fa448167 100644
--- a/spec/support/helpers/features/branches_helpers.rb
+++ b/spec/support/helpers/features/branches_helpers.rb
@@ -22,15 +22,10 @@ module Spec
end
def select_branch(branch_name)
- ref_selector = '.ref-selector'
- find(ref_selector).click
wait_for_requests
- page.within(ref_selector) do
- fill_in _('Search by Git revision'), with: branch_name
- wait_for_requests
- find('li', text: branch_name, match: :prefer_exact).click
- end
+ click_button branch_name
+ send_keys branch_name
end
end
end