Fix more tests

This commit is contained in:
Ari Timonen 2020-03-17 03:58:33 +02:00
parent f2fd71bd9a
commit 78a089bc86
5 changed files with 29 additions and 6 deletions

View file

@ -22,5 +22,9 @@ NEW_RELIC_LICENSE_KEY=
EXCEPTIONAL_API_KEY= EXCEPTIONAL_API_KEY=
# Fix poltergeist issue
CLIVER_NO_VERIFY=1
OPENSSL_CONF=/etc/ssl/
GOOGLE_API_KEY= GOOGLE_API_KEY=
GOOGLE_CALENDAR_ID= GOOGLE_CALENDAR_ID=

View file

@ -13,6 +13,7 @@ RUN apt-get update && apt-get -y upgrade \
libxslt1-dev libxml2-dev \ libxslt1-dev libxml2-dev \
imagemagick libmagickwand-dev \ imagemagick libmagickwand-dev \
nodejs \ nodejs \
phantomjs \
firefox-esr firefox-esr
# Separate Gemfile ADD so that `bundle install` can be cached more effectively # Separate Gemfile ADD so that `bundle install` can be cached more effectively

View file

@ -97,6 +97,10 @@ group :test do
gem 'rspec' gem 'rspec'
gem 'rspec-rails' gem 'rspec-rails'
gem 'selenium-webdriver' gem 'selenium-webdriver'
# Fix FF issue
gem 'geckodriver-helper'
# Fix legacy issue
gem 'rails-controller-testing'
gem 'simplecov', require: false gem 'simplecov', require: false
gem 'test-unit' gem 'test-unit'
gem 'timecop' gem 'timecop'

View file

@ -60,6 +60,8 @@ GEM
annotate (3.1.0) annotate (3.1.0)
activerecord (>= 3.2, < 7.0) activerecord (>= 3.2, < 7.0)
rake (>= 10.4, < 14.0) rake (>= 10.4, < 14.0)
archive-zip (0.12.0)
io-like (~> 0.3.0)
arel (9.0.0) arel (9.0.0)
ast (2.4.0) ast (2.4.0)
bbcoder (1.1.1) bbcoder (1.1.1)
@ -93,7 +95,8 @@ GEM
image_processing (~> 1.1) image_processing (~> 1.1)
mimemagic (>= 0.3.0) mimemagic (>= 0.3.0)
mini_mime (>= 0.1.3) mini_mime (>= 0.1.3)
childprocess (3.0.0) childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
cliver (0.3.2) cliver (0.3.2)
coderay (1.1.2) coderay (1.1.2)
coffee-rails (5.0.0) coffee-rails (5.0.0)
@ -138,6 +141,8 @@ GEM
ffi (1.12.2) ffi (1.12.2)
font-awesome-sass (4.1.0) font-awesome-sass (4.1.0)
sass (~> 3.2) sass (~> 3.2)
geckodriver-helper (0.24.0)
archive-zip (~> 0.7)
globalid (0.4.2) globalid (0.4.2)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
google-api-client (0.10.3) google-api-client (0.10.3)
@ -177,6 +182,7 @@ GEM
image_processing (1.10.3) image_processing (1.10.3)
mini_magick (>= 4.9.5, < 5) mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3) ruby-vips (>= 2.0.17, < 3)
io-like (0.3.1)
jaro_winkler (1.5.4) jaro_winkler (1.5.4)
jquery-rails (4.3.5) jquery-rails (4.3.5)
rails-dom-testing (>= 1, < 3) rails-dom-testing (>= 1, < 3)
@ -253,6 +259,10 @@ GEM
bundler (>= 1.3.0) bundler (>= 1.3.0)
railties (= 5.2.4.1) railties (= 5.2.4.1)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.4)
actionpack (>= 5.0.1.x)
actionview (>= 5.0.1.x)
activesupport (>= 5.0.1.x)
rails-dom-testing (2.0.3) rails-dom-testing (2.0.3)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
nokogiri (>= 1.6) nokogiri (>= 1.6)
@ -314,7 +324,7 @@ GEM
ruby-progressbar (1.10.1) ruby-progressbar (1.10.1)
ruby-vips (2.0.17) ruby-vips (2.0.17)
ffi (~> 1.9) ffi (~> 1.9)
rubyzip (2.3.0) rubyzip (1.3.0)
sanitize (5.1.0) sanitize (5.1.0)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.8.0) nokogiri (>= 1.8.0)
@ -330,9 +340,10 @@ GEM
sprockets (>= 2.8, < 4.0) sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0) sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3) tilt (>= 1.1, < 3)
selenium-webdriver (3.142.7) selenium-webdriver (2.53.4)
childprocess (>= 0.5, < 4.0) childprocess (~> 0.5)
rubyzip (>= 1.2.2) rubyzip (~> 1.0)
websocket (~> 1.0)
signet (0.11.0) signet (0.11.0)
addressable (~> 2.3) addressable (~> 2.3)
faraday (~> 0.9) faraday (~> 0.9)
@ -378,6 +389,7 @@ GEM
activemodel (>= 5.0) activemodel (>= 5.0)
bindex (>= 0.4.0) bindex (>= 0.4.0)
railties (>= 5.0) railties (>= 5.0)
websocket (1.2.8)
websocket-driver (0.7.1) websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.4) websocket-extensions (0.1.4)
@ -408,6 +420,7 @@ DEPENDENCIES
factory_bot_rails (= 4.10.0) factory_bot_rails (= 4.10.0)
faraday (~> 0.9.0) faraday (~> 0.9.0)
font-awesome-sass (~> 4.1.0.0) font-awesome-sass (~> 4.1.0.0)
geckodriver-helper
google-api-client (~> 0.10.3) google-api-client (~> 0.10.3)
haml haml
i18n-js i18n-js
@ -423,6 +436,7 @@ DEPENDENCIES
public_suffix public_suffix
puma puma
rails (~> 5.2.4.1) rails (~> 5.2.4.1)
rails-controller-testing
rails_autolink rails_autolink
rake (< 11.0) rake (< 11.0)
responders responders

View file

@ -39,7 +39,7 @@ Capybara.register_driver :selenium_remote do |app|
) )
end end
#Capybara.javascript_driver = :selenium_remote # Capybara.javascript_driver = :selenium
#Capybara.javascript_driver = :selenium_remote #Capybara.javascript_driver = :selenium_remote
#Capybara.server_port = TEST_APP_PORT #Capybara.server_port = TEST_APP_PORT