Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/capybara_helpers.rb')
-rw-r--r--spec/support/helpers/capybara_helpers.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/support/helpers/capybara_helpers.rb b/spec/support/helpers/capybara_helpers.rb
index 13ec179b734..a7baa7042c9 100644
--- a/spec/support/helpers/capybara_helpers.rb
+++ b/spec/support/helpers/capybara_helpers.rb
@@ -46,14 +46,4 @@ module CapybaraHelpers
def javascript_test?
Capybara.current_driver == Capybara.javascript_driver
end
-
- def scroll_to(element)
- raise 'JS not available' unless javascript_test?
-
- script = <<-JS
- arguments[0].scrollIntoView(true);
- JS
-
- page.driver.browser.execute_script(script, element.native)
- end
end