Merge pull request #4480 from tchak/use-webdrivers

Use webdrivers gem to keep webdrivers updated
This commit is contained in:
Paul Chavard 2019-11-06 11:31:29 +01:00 committed by GitHub
commit 4e454a7e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 1 deletions

View file

@ -93,6 +93,7 @@ group :test do
gem 'shoulda-matchers', require: false
gem 'timecop'
gem 'vcr'
gem 'webdrivers', '~> 4.0'
gem 'webmock'
end

View file

@ -678,6 +678,10 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webdrivers (4.1.3)
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (>= 3.0, < 4.0)
webfinger (1.1.0)
activesupport
httpclient (>= 2.4)
@ -812,6 +816,7 @@ DEPENDENCIES
vcr
warden
web-console
webdrivers (~> 4.0)
webmock
webpacker
xray-rails

View file

@ -18,6 +18,8 @@ chdir APP_ROOT do
system('bundle check') || system!('bundle install')
system! 'bin/yarn install'
puts "\n== Updating webdrivers =="
system! 'RAILS_ENV=test bin/rails webdrivers:chromedriver:update'
puts "\n== Copying sample files =="
unless File.exist?('.env')

View file

@ -18,6 +18,9 @@ chdir APP_ROOT do
system('bundle check') || system!('bundle install')
system! 'bin/yarn install'
puts "\n== Updating webdrivers =="
system! 'RAILS_ENV=test bin/rails webdrivers:chromedriver:update'
puts "\n== Updating database =="
system! 'bin/rails db:migrate'

View file

@ -83,7 +83,7 @@ VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = 'spec/fixtures/cassettes'
c.configure_rspec_metadata!
c.ignore_hosts 'test.host'
c.ignore_hosts 'test.host', 'chromedriver.storage.googleapis.com'
end
DatabaseCleaner.strategy = :transaction