Patch #34579 » 0001-Add-webdrivers-gem-to-manage-Chromedriver-installati.patch
Gemfile | ||
---|---|---|
91 | 91 |
gem 'puma' |
92 | 92 |
gem 'capybara', '~> 3.31.0' |
93 | 93 |
gem "selenium-webdriver" |
94 |
gem "webdrivers", '~> 4.4', require: false |
|
94 | 95 |
# RuboCop |
95 | 96 |
gem 'rubocop', '~> 1.5.2' |
96 | 97 |
gem 'rubocop-performance', '~> 1.9.0' |
doc/RUNNING_TESTS | ||
---|---|---|
66 | 66 |
Running Capybara tests |
67 | 67 |
====================== |
68 | 68 | |
69 |
You need to have ChromeDriver installed and available in your PATH:
|
|
70 |
https://sites.google.com/a/chromium.org/chromedriver/ |
|
69 |
You need to have Chrome installed and available in your PATH.
|
|
70 |
Chromedriver is managed by the `webdrivers` gem (https://rubygems.org/gems/webdrivers) |
|
71 | 71 | |
72 | 72 |
Capybara tests can be run with: |
73 | 73 |
`rails test:system` |
test/application_system_test_case.rb | ||
---|---|---|
18 | 18 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
19 | 19 | |
20 | 20 |
require File.expand_path('../test_helper', __FILE__) |
21 |
require 'webdrivers/chromedriver' |
|
21 | 22 | |
22 | 23 |
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase |
23 | 24 |
DOWNLOADS_PATH = File.expand_path(File.join(Rails.root, 'tmp', 'downloads')) |