Merge pull request #4480 from tchak/use-webdrivers
Use webdrivers gem to keep webdrivers updated
This commit is contained in:
commit
4e454a7e15
5 changed files with 12 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -93,6 +93,7 @@ group :test do
|
|||
gem 'shoulda-matchers', require: false
|
||||
gem 'timecop'
|
||||
gem 'vcr'
|
||||
gem 'webdrivers', '~> 4.0'
|
||||
gem 'webmock'
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue