Skip to content

Commit fb15a9e

Browse files
committed
Add 'webdrivers' gem to manage Chromedriver installation (#34579).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20742 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 8bdea4c commit fb15a9e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ group :test do
9191
gem 'puma'
9292
gem 'capybara', '~> 3.31.0'
9393
gem "selenium-webdriver"
94+
gem 'webdrivers', '~> 4.4', require: false
9495
# RuboCop
9596
gem 'rubocop', '~> 1.9.1'
9697
gem 'rubocop-performance', '~> 1.9.0'

doc/RUNNING_TESTS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ REDMINE_TEST_DAV_SERVER environment variable to specify another host.
6666
Running Capybara tests
6767
======================
6868

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)
7171

7272
Capybara tests can be run with:
7373
`rails test:system`

test/application_system_test_case.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919

2020
require File.expand_path('../test_helper', __FILE__)
21+
require 'webdrivers/chromedriver'
2122

2223
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
2324
DOWNLOADS_PATH = File.expand_path(File.join(Rails.root, 'tmp', 'downloads'))

0 commit comments

Comments
 (0)