Use webdrivers instead of chromedriver-helper for AV UJS tests
This commit is contained in:
parent
4ec4861452
commit
2512f24ef4
2
Gemfile
2
Gemfile
|
@ -92,7 +92,7 @@ gem "webmock"
|
||||||
|
|
||||||
group :ujs do
|
group :ujs do
|
||||||
gem "qunit-selenium"
|
gem "qunit-selenium"
|
||||||
gem "chromedriver-helper"
|
gem "webdrivers"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add your own local bundler stuff.
|
# Add your own local bundler stuff.
|
||||||
|
|
14
Gemfile.lock
14
Gemfile.lock
|
@ -110,8 +110,6 @@ GEM
|
||||||
addressable (2.5.2)
|
addressable (2.5.2)
|
||||||
public_suffix (>= 2.0.2, < 4.0)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
amq-protocol (2.3.0)
|
amq-protocol (2.3.0)
|
||||||
archive-zip (0.11.0)
|
|
||||||
io-like (~> 0.3.0)
|
|
||||||
ast (2.4.0)
|
ast (2.4.0)
|
||||||
aws-eventstream (1.0.1)
|
aws-eventstream (1.0.1)
|
||||||
aws-partitions (1.111.0)
|
aws-partitions (1.111.0)
|
||||||
|
@ -185,9 +183,6 @@ GEM
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
childprocess (0.9.0)
|
childprocess (0.9.0)
|
||||||
ffi (~> 1.0, >= 1.0.11)
|
ffi (~> 1.0, >= 1.0.11)
|
||||||
chromedriver-helper (2.1.0)
|
|
||||||
archive-zip (~> 0.10)
|
|
||||||
nokogiri (~> 1.8)
|
|
||||||
coffee-script (2.4.1)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
|
@ -282,7 +277,6 @@ GEM
|
||||||
image_processing (1.7.1)
|
image_processing (1.7.1)
|
||||||
mini_magick (~> 4.0)
|
mini_magick (~> 4.0)
|
||||||
ruby-vips (>= 2.0.13, < 3)
|
ruby-vips (>= 2.0.13, < 3)
|
||||||
io-like (0.3.0)
|
|
||||||
jaro_winkler (1.5.2)
|
jaro_winkler (1.5.2)
|
||||||
jaro_winkler (1.5.2-java)
|
jaro_winkler (1.5.2-java)
|
||||||
jdbc-mysql (5.1.46)
|
jdbc-mysql (5.1.46)
|
||||||
|
@ -336,6 +330,7 @@ GEM
|
||||||
mysql2 (0.5.2)
|
mysql2 (0.5.2)
|
||||||
mysql2 (0.5.2-x64-mingw32)
|
mysql2 (0.5.2-x64-mingw32)
|
||||||
mysql2 (0.5.2-x86-mingw32)
|
mysql2 (0.5.2-x86-mingw32)
|
||||||
|
net_http_ssl_fix (0.0.10)
|
||||||
nio4r (2.3.1)
|
nio4r (2.3.1)
|
||||||
nio4r (2.3.1-java)
|
nio4r (2.3.1-java)
|
||||||
nokogiri (1.9.1)
|
nokogiri (1.9.1)
|
||||||
|
@ -501,6 +496,11 @@ GEM
|
||||||
json (>= 1.8)
|
json (>= 1.8)
|
||||||
nokogiri (~> 1.6)
|
nokogiri (~> 1.6)
|
||||||
wdm (0.1.1)
|
wdm (0.1.1)
|
||||||
|
webdrivers (3.7.0)
|
||||||
|
net_http_ssl_fix
|
||||||
|
nokogiri (~> 1.6)
|
||||||
|
rubyzip (~> 1.0)
|
||||||
|
selenium-webdriver (~> 3.0)
|
||||||
webmock (3.4.2)
|
webmock (3.4.2)
|
||||||
addressable (>= 2.3.6)
|
addressable (>= 2.3.6)
|
||||||
crack (>= 0.3.2)
|
crack (>= 0.3.2)
|
||||||
|
@ -540,7 +540,6 @@ DEPENDENCIES
|
||||||
bootsnap (>= 1.4.0)
|
bootsnap (>= 1.4.0)
|
||||||
byebug
|
byebug
|
||||||
capybara (>= 2.15)
|
capybara (>= 2.15)
|
||||||
chromedriver-helper
|
|
||||||
connection_pool
|
connection_pool
|
||||||
dalli
|
dalli
|
||||||
delayed_job
|
delayed_job
|
||||||
|
@ -587,6 +586,7 @@ DEPENDENCIES
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
w3c_validators
|
w3c_validators
|
||||||
wdm (>= 0.1.0)
|
wdm (>= 0.1.0)
|
||||||
|
webdrivers
|
||||||
webmock
|
webmock
|
||||||
webpacker (~> 4.0)
|
webpacker (~> 4.0)
|
||||||
websocket-client-simple!
|
websocket-client-simple!
|
||||||
|
|
|
@ -5,7 +5,7 @@ require "qunit/selenium/test_runner"
|
||||||
if ARGV[1]
|
if ARGV[1]
|
||||||
driver = ::Selenium::WebDriver.for(:remote, url: ARGV[1], desired_capabilities: :chrome)
|
driver = ::Selenium::WebDriver.for(:remote, url: ARGV[1], desired_capabilities: :chrome)
|
||||||
else
|
else
|
||||||
require "chromedriver-helper"
|
require "webdrivers"
|
||||||
|
|
||||||
driver_options = Selenium::WebDriver::Chrome::Options.new
|
driver_options = Selenium::WebDriver::Chrome::Options.new
|
||||||
driver_options.add_argument("--headless")
|
driver_options.add_argument("--headless")
|
||||||
|
|
Loading…
Reference in New Issue