diff --git a/Gemfile b/Gemfile index 5d89d8fc3..ec328eb40 100644 --- a/Gemfile +++ b/Gemfile @@ -90,7 +90,6 @@ group :test do gem "capybara-screenshot" gem "capybara-lockstep" gem "cucumber-rails", require: false - gem "cuprite" gem "database_cleaner" gem "factory_bot_rails" gem "rspec-rails", require: false diff --git a/Gemfile.lock b/Gemfile.lock index a93fe5114..d1fc3b569 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -156,7 +156,6 @@ GEM launchy chartkick (4.1.3) childprocess (4.1.0) - cliver (0.3.2) coderay (1.1.3) concurrent-ruby (1.1.10) crack (0.4.5) @@ -200,9 +199,6 @@ GEM cucumber-wire (6.2.1) cucumber-core (~> 10.1, >= 10.1.0) cucumber-cucumber-expressions (~> 14.0, >= 14.0.0) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) database_cleaner (2.0.1) database_cleaner-active_record (~> 2.0.0) database_cleaner-active_record (2.0.1) @@ -233,11 +229,6 @@ GEM factory_bot_rails (6.2.0) factory_bot (~> 6.2.0) railties (>= 5.0.0) - ferrum (0.11) - addressable (~> 2.5) - cliver (~> 0.3) - concurrent-ruby (~> 1.1) - websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) @@ -543,7 +534,6 @@ DEPENDENCIES capybara-screenshot chartkick cucumber-rails - cuprite database_cleaner devise! dotenv-rails diff --git a/features/support/env.rb b/features/support/env.rb index e5b2405f6..5abdfc2cc 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -1,6 +1,5 @@ require 'cucumber/rails' require "capybara-screenshot/cucumber" -require "capybara/cuprite" ActionController::Base.allow_rescue = false @@ -13,16 +12,9 @@ end Cucumber::Rails::Database.javascript_strategy = :truncation -Capybara.register_driver :cuprite do |app| - Capybara::Cuprite::Driver.new(app, headless: true, - js_errors: true, - window_size: [1600, 1200], - timeout: 30, - process_timeout: 60) -end -Capybara.javascript_driver = :cuprite +Capybara.javascript_driver = :headless -Capybara::Screenshot.register_driver(:cuprite) do |driver, path| +Capybara::Screenshot.register_driver(:headless) do |driver, path| driver.render(path, full: true) end