mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-07 14:57:18 +02:00
Download chromedriver before disable net connection
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
080697201c
commit
c4856dbf74
@ -1,10 +1,5 @@
|
||||
require "test_helper"
|
||||
|
||||
if ENV["TRAVIS"]
|
||||
require "chromedriver/helper"
|
||||
Chromedriver.set_version "2.35"
|
||||
end
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
# For debugging JavaScript, make slower tests...
|
||||
# caps = Selenium::WebDriver::Remote::Capabilities.chrome(loggingPrefs: { browser: 'ALL' })
|
||||
|
@ -4,8 +4,13 @@ require 'test/unit/rails/test_help'
|
||||
require 'test/unit/rr'
|
||||
require 'test/unit/capybara'
|
||||
require 'capybara-screenshot/testunit' # for integration test
|
||||
require 'webmock/test_unit'
|
||||
|
||||
if ENV["TRAVIS"]
|
||||
require "chromedriver/helper"
|
||||
Chromedriver.set_version "2.35"
|
||||
end
|
||||
|
||||
require 'webmock/test_unit'
|
||||
WebMock.disable_net_connect!(allow_localhost: true)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user