Project

General

Profile

Patch #34579 » 0001-Add-webdrivers-gem-to-manage-Chromedriver-installati.patch

Marius BĂLTEANU, 2021-01-09 12:55

View differences:

Gemfile
gem 'puma'
gem 'capybara', '~> 3.31.0'
gem "selenium-webdriver"
gem "webdrivers", '~> 4.4', require: false
# RuboCop
gem 'rubocop', '~> 1.5.2'
gem 'rubocop-performance', '~> 1.9.0'
doc/RUNNING_TESTS
Running Capybara tests
======================
You need to have ChromeDriver installed and available in your PATH:
https://sites.google.com/a/chromium.org/chromedriver/
You need to have Chrome installed and available in your PATH.
Chromedriver is managed by the `webdrivers` gem (https://rubygems.org/gems/webdrivers)
Capybara tests can be run with:
`rails test:system`
test/application_system_test_case.rb
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.expand_path('../test_helper', __FILE__)
require 'webdrivers/chromedriver'
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
DOWNLOADS_PATH = File.expand_path(File.join(Rails.root, 'tmp', 'downloads'))
    (1-1/1)