Switch to webdrivers, chromedriver-helper is no more
While we're at it let's also update capybara. Co-authored-by: Ana María Martínez Gómez <anamaria@martinezgomez.name>
This commit is contained in:
parent
e18174a3b3
commit
04616a9b24
3 changed files with 17 additions and 18 deletions
3
Gemfile
3
Gemfile
|
|
@ -244,12 +244,11 @@ end
|
||||||
group :test do
|
group :test do
|
||||||
# as test framework
|
# as test framework
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
gem 'chromedriver-helper'
|
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'geckodriver-helper'
|
gem 'geckodriver-helper'
|
||||||
gem 'rspec-rails'
|
gem 'rspec-rails'
|
||||||
gem 'selenium-webdriver'
|
|
||||||
gem 'transactional_capybara'
|
gem 'transactional_capybara'
|
||||||
|
gem 'webdrivers'
|
||||||
# for measuring test coverage
|
# for measuring test coverage
|
||||||
gem 'codecov', require: false
|
gem 'codecov', require: false
|
||||||
# for describing models
|
# for describing models
|
||||||
|
|
|
||||||
28
Gemfile.lock
28
Gemfile.lock
|
|
@ -93,13 +93,13 @@ GEM
|
||||||
builder (3.2.3)
|
builder (3.2.3)
|
||||||
byebug (11.0.1)
|
byebug (11.0.1)
|
||||||
cancancan (2.3.0)
|
cancancan (2.3.0)
|
||||||
capybara (3.16.2)
|
capybara (3.26.0)
|
||||||
addressable
|
addressable
|
||||||
mini_mime (>= 0.1.3)
|
mini_mime (>= 0.1.3)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
rack (>= 1.6.0)
|
rack (>= 1.6.0)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
regexp_parser (~> 1.2)
|
regexp_parser (~> 1.5)
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
carrierwave (1.3.1)
|
carrierwave (1.3.1)
|
||||||
activemodel (>= 4.0.0)
|
activemodel (>= 4.0.0)
|
||||||
|
|
@ -112,11 +112,8 @@ GEM
|
||||||
case_transform (0.2)
|
case_transform (0.2)
|
||||||
activesupport
|
activesupport
|
||||||
chartkick (3.2.0)
|
chartkick (3.2.0)
|
||||||
childprocess (0.9.0)
|
childprocess (1.0.1)
|
||||||
ffi (~> 1.0, >= 1.0.11)
|
rake (< 13.0)
|
||||||
chromedriver-helper (2.1.1)
|
|
||||||
archive-zip (~> 0.10)
|
|
||||||
nokogiri (~> 1.8)
|
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
chunky_png (1.3.11)
|
chunky_png (1.3.11)
|
||||||
climate_control (0.2.0)
|
climate_control (0.2.0)
|
||||||
|
|
@ -285,7 +282,7 @@ GEM
|
||||||
open4 (~> 1.3.4)
|
open4 (~> 1.3.4)
|
||||||
rake
|
rake
|
||||||
mini_magick (4.9.3)
|
mini_magick (4.9.3)
|
||||||
mini_mime (1.0.1)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minitest (5.11.3)
|
minitest (5.11.3)
|
||||||
momentjs-rails (2.20.1)
|
momentjs-rails (2.20.1)
|
||||||
|
|
@ -376,7 +373,7 @@ GEM
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
psych (3.1.0)
|
psych (3.1.0)
|
||||||
public_suffix (3.0.3)
|
public_suffix (3.1.1)
|
||||||
puma (3.12.1)
|
puma (3.12.1)
|
||||||
rack (2.0.7)
|
rack (2.0.7)
|
||||||
rack-openid (1.3.1)
|
rack-openid (1.3.1)
|
||||||
|
|
@ -449,7 +446,7 @@ GEM
|
||||||
recaptcha (4.14.0)
|
recaptcha (4.14.0)
|
||||||
json
|
json
|
||||||
redcarpet (3.4.0)
|
redcarpet (3.4.0)
|
||||||
regexp_parser (1.4.0)
|
regexp_parser (1.6.0)
|
||||||
request_store (1.4.1)
|
request_store (1.4.1)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (2.4.1)
|
responders (2.4.1)
|
||||||
|
|
@ -521,8 +518,8 @@ GEM
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
rake
|
rake
|
||||||
selectize-rails (0.12.6)
|
selectize-rails (0.12.6)
|
||||||
selenium-webdriver (3.141.0)
|
selenium-webdriver (3.142.3)
|
||||||
childprocess (~> 0.5)
|
childprocess (>= 0.5, < 2.0)
|
||||||
rubyzip (~> 1.2, >= 1.2.2)
|
rubyzip (~> 1.2, >= 1.2.2)
|
||||||
sexp_processor (4.11.0)
|
sexp_processor (4.11.0)
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
|
|
@ -591,6 +588,10 @@ GEM
|
||||||
activemodel (>= 5.0)
|
activemodel (>= 5.0)
|
||||||
bindex (>= 0.4.0)
|
bindex (>= 0.4.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
|
webdrivers (4.1.0)
|
||||||
|
nokogiri (~> 1.6)
|
||||||
|
rubyzip (~> 1.0)
|
||||||
|
selenium-webdriver (>= 3.0, < 4.0)
|
||||||
webmock (3.5.1)
|
webmock (3.5.1)
|
||||||
addressable (>= 2.3.6)
|
addressable (>= 2.3.6)
|
||||||
crack (>= 0.3.2)
|
crack (>= 0.3.2)
|
||||||
|
|
@ -626,7 +627,6 @@ DEPENDENCIES
|
||||||
carrierwave
|
carrierwave
|
||||||
carrierwave-bombshelter
|
carrierwave-bombshelter
|
||||||
chartkick
|
chartkick
|
||||||
chromedriver-helper
|
|
||||||
climate_control
|
climate_control
|
||||||
cloudinary
|
cloudinary
|
||||||
cocoon
|
cocoon
|
||||||
|
|
@ -703,7 +703,6 @@ DEPENDENCIES
|
||||||
ruby-oembed
|
ruby-oembed
|
||||||
sass-rails (>= 4.0.2)
|
sass-rails (>= 4.0.2)
|
||||||
selectize-rails
|
selectize-rails
|
||||||
selenium-webdriver
|
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
skylight
|
skylight
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
|
|
@ -718,6 +717,7 @@ DEPENDENCIES
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
unobtrusive_flash (>= 3)
|
unobtrusive_flash (>= 3)
|
||||||
web-console
|
web-console
|
||||||
|
webdrivers
|
||||||
webmock
|
webmock
|
||||||
whenever
|
whenever
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||||
|
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'shoulda/matchers'
|
require 'shoulda/matchers'
|
||||||
|
require 'webdrivers'
|
||||||
|
|
||||||
# To avoid confusion on missed migrations - use Rails 4 checker to ensure
|
# To avoid confusion on missed migrations - use Rails 4 checker to ensure
|
||||||
# all migrations applied
|
# all migrations applied
|
||||||
ActiveRecord::Migration.maintain_test_schema!
|
ActiveRecord::Migration.maintain_test_schema!
|
||||||
|
|
@ -21,8 +23,6 @@ ActiveRecord::Migration.maintain_test_schema!
|
||||||
# Keep capybara and the database on the same page
|
# Keep capybara and the database on the same page
|
||||||
require 'transactional_capybara/rspec'
|
require 'transactional_capybara/rspec'
|
||||||
|
|
||||||
require 'selenium/webdriver'
|
|
||||||
|
|
||||||
# Adds rspec helper provided by paper_trail
|
# Adds rspec helper provided by paper_trail
|
||||||
# makes it easier to control when PaperTrail is enabled during testing.
|
# makes it easier to control when PaperTrail is enabled during testing.
|
||||||
require 'paper_trail/frameworks/rspec'
|
require 'paper_trail/frameworks/rspec'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue