Use Firefox latest on travis.yml

pull/5988/head
Oliver Günther 7 years ago
parent e8464b6705
commit f04cc1f74c
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 8
      .travis.yml
  2. 2
      Gemfile
  3. 8
      Gemfile.lock
  4. 4
      spec/support/capybara.rb

@ -81,6 +81,12 @@ before_install:
- "/sbin/start-stop-daemon --start -v --pidfile ./tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x16"
- "echo `xdpyinfo -display :99 | grep 'dimensions' | awk '{ print $2 }'`"
# Install geckodriver
- wget https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.19.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
# Install Node LTS Boron (6.9.1)
- "nvm install 6.9.1"
@ -107,7 +113,7 @@ notifications:
- secure: "dkVCNYSedLfeuqTboRPx/iWmXldhoHZpSp83cpkG6ZL81Psut2ZEHg6aBiWgqQWdfNAca4a51hWXs6utRqdgnxo51YAB/pMy0/b+jEOjZvuShOVz6TVqn5W5JLTNZJeVZL+BgvwXZWbIujH/cSuUv+h7GTnS+8Y4b2ZrCYilP35sAck2bbbAsKzbuW2yZZqK7X0UnSjoxg+KeT9DuK1zjjJJ6CZig1/n5ZjciQIv7JD50hmqFxBgjyBi71Loh/iohUF89EoQRXm0KkSmEhCINld5s+7SP4jSmnqyrNamNNw2ZGCgg3OXhcvDqOHjPwpCNNhrtzTExt/Z2cTzHz4FnV9ncJj9i1pkbjveuudVUTeaSHHXjw/X496OKLP3LwEZYggUCyc3nu9qR2zSs6zdG4ijhclOVzNrXDDixjpYGmOg8mVunG2cwFUSjtmX8nyPNXQvRnvsfnVYalprqXJHGmQW07nFE/2lbjdmnQiCEExNsKXO5vqrqo6RYOtTfka9B5s3ZkTkXgZkTWuEgWbaMC/fZhi0NCu2Ow3XOzQrs8hVLF4w1zngjqOLjk+LftqWwT42D47RKW3SZfVEVm8Vw+JGfh/uJUNAsPsu+Mybw8k0aDmLjPTlRZD+dYvQ2EPizgc2+cf+0GVoaGzKZF+cJ8I0ut8kO13M9ZmjiHU0se4="
addons:
firefox: "45.0esr"
firefox: "latest"
postgresql: "9.3"
# Disabling coverage reporting until CodeClimate supports merging results from multiple partial tests

@ -203,7 +203,7 @@ group :test do
gem 'fuubar', '~> 2.2.0'
gem 'capybara-select2', git: 'https://github.com/goodwill/capybara-select2', ref: '585192e'
gem 'capybara-ng', '~> 0.2.7'
gem 'selenium-webdriver', '~> 3.4'
gem 'selenium-webdriver', '~> 3.6'
gem 'timecop', '~> 0.9.0'
gem 'webmock', '~> 3.0.0', require: false

@ -198,7 +198,7 @@ GEM
cells-rails (0.0.6)
actionpack (>= 3.0)
cells (>= 4.1)
childprocess (0.7.1)
childprocess (0.8.0)
ffi (~> 1.0, >= 1.0.11)
climate_control (0.0.3)
activesupport (>= 3.0)
@ -534,10 +534,9 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.4.0)
selenium-webdriver (3.6.0)
childprocess (~> 0.5)
rubyzip (~> 1.0)
websocket (~> 1.0)
shoulda-context (1.2.2)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
@ -600,7 +599,6 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
websocket (1.2.4)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
@ -714,7 +712,7 @@ DEPENDENCIES
rubytree!
sass (= 3.5.1)
sass-rails (~> 5.0.6)
selenium-webdriver (~> 3.4)
selenium-webdriver (~> 3.6)
shoulda-context (~> 1.2)
shoulda-matchers (~> 3.1)
simplecov (~> 0.14.0)

@ -42,9 +42,7 @@ Capybara.register_driver :selenium do |app|
Selenium::WebDriver::Firefox::Binary.path = ENV['FIREFOX_BINARY_PATH'] ||
Selenium::WebDriver::Firefox::Binary.path
# need to disable marionette as noted
# https://github.com/teamcapybara/capybara#capybara
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(marionette: false)
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(marionette: true)
capabilities["elementScrollBehavior"] = 1
client = Selenium::WebDriver::Remote::Http::Default.new

Loading…
Cancel
Save