summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-08-11 23:33:49 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-08-11 23:33:49 +0300
commit28d903858e1ba491bcb75a5534db9eea1acdeaf0 (patch)
tree817ae1b830246c7b4eb3f8cdc759fd54ec4e4c9c /features/support
parentbb50917a296d198ff1ede52c0abe36009eaf6f3a (diff)
downloadgitlab-ce-28d903858e1ba491bcb75a5534db9eea1acdeaf0.tar.gz
Switch to capybara-webkit for Cucumber
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index 47253509262..498072a3d28 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -4,7 +4,6 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
-require "selenium-webdriver"
require 'cucumber/rails'
require 'webmock/cucumber'
WebMock.allow_net_connect!
@@ -19,6 +18,7 @@ require Rails.root.join 'spec/support/valid_commit'
# prefer to use XPath just remove this line and adjust any selectors in your
# steps to use the XPath syntax.
Capybara.default_selector = :css
+Capybara.javascript_driver = :webkit
# By default, any exception happening in your Rails application will bubble up
# to Cucumber so that your scenario will fail. This is a different from how
@@ -64,12 +64,3 @@ end
# The :transaction strategy is faster, but might give you threading problems.
# See https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
Cucumber::Rails::Database.javascript_strategy = :truncation
-
-# We need this to fix the random timeout error that we were seeing in CI.
-Capybara.register_driver :selenium_with_long_timeout do |app|
- client = Selenium::WebDriver::Remote::Http::Default.new
- client.timeout = 120
- Capybara::Selenium::Driver.new(app, :browser => :firefox, :http_client => client)
-end
-
-Capybara.javascript_driver = :selenium_with_long_timeout