mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-10 08:17:06 +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"
|
require "test_helper"
|
||||||
|
|
||||||
if ENV["TRAVIS"]
|
|
||||||
require "chromedriver/helper"
|
|
||||||
Chromedriver.set_version "2.35"
|
|
||||||
end
|
|
||||||
|
|
||||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||||
# For debugging JavaScript, make slower tests...
|
# For debugging JavaScript, make slower tests...
|
||||||
# caps = Selenium::WebDriver::Remote::Capabilities.chrome(loggingPrefs: { browser: 'ALL' })
|
# 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/rr'
|
||||||
require 'test/unit/capybara'
|
require 'test/unit/capybara'
|
||||||
require 'capybara-screenshot/testunit' # for integration test
|
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)
|
WebMock.disable_net_connect!(allow_localhost: true)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user