mirror of
https://github.com/redmine/redmine.git
synced 2026-01-22 07:23:07 +01:00
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
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -91,6 +91,7 @@ group :test do
|
||||
gem 'puma'
|
||||
gem 'capybara', '~> 3.31.0'
|
||||
gem "selenium-webdriver"
|
||||
gem 'webdrivers', '~> 4.4', require: false
|
||||
# RuboCop
|
||||
gem 'rubocop', '~> 1.9.1'
|
||||
gem 'rubocop-performance', '~> 1.9.0'
|
||||
|
||||
@@ -66,8 +66,8 @@ REDMINE_TEST_DAV_SERVER environment variable to specify another host.
|
||||
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`
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
# 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'))
|
||||
|
||||
Reference in New Issue
Block a user