diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-30 16:21:10 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-30 16:21:10 +0900 |
commit | deac9ec430f652ddea485c92f39f7b00ebb4d4a5 (patch) | |
tree | b58b65b9b853b244738985aba65ea900e84f13b9 /actionpack/test/dispatch/system_testing/driver_test.rb | |
parent | bf42e1506be85c0c977038ae334548f5699f7afd (diff) | |
download | rails-deac9ec430f652ddea485c92f39f7b00ebb4d4a5.tar.gz rails-deac9ec430f652ddea485c92f39f7b00ebb4d4a5.tar.bz2 rails-deac9ec430f652ddea485c92f39f7b00ebb4d4a5.zip |
Fix system testing failure
https://travis-ci.org/rails/rails/jobs/486155626#L1317-L1335
Diffstat (limited to 'actionpack/test/dispatch/system_testing/driver_test.rb')
-rw-r--r-- | actionpack/test/dispatch/system_testing/driver_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/system_testing/driver_test.rb b/actionpack/test/dispatch/system_testing/driver_test.rb index 2ab8fac666..0d08f17af3 100644 --- a/actionpack/test/dispatch/system_testing/driver_test.rb +++ b/actionpack/test/dispatch/system_testing/driver_test.rb @@ -23,6 +23,7 @@ class DriverTest < ActiveSupport::TestCase driver = ActionDispatch::SystemTesting::Driver.new(:selenium, using: :headless_chrome, screen_size: [1400, 1400], options: { url: "http://example.com/wd/hub" }) assert_equal :selenium, driver.instance_variable_get(:@name) assert_equal :headless_chrome, driver.instance_variable_get(:@browser).name + assert_instance_of Selenium::WebDriver::Chrome::Options, driver.instance_variable_get(:@browser).options assert_equal [1400, 1400], driver.instance_variable_get(:@screen_size) assert_equal ({ url: "http://example.com/wd/hub" }), driver.instance_variable_get(:@options) end @@ -31,6 +32,7 @@ class DriverTest < ActiveSupport::TestCase driver = ActionDispatch::SystemTesting::Driver.new(:selenium, using: :headless_firefox, screen_size: [1400, 1400], options: { url: "http://example.com/wd/hub" }) assert_equal :selenium, driver.instance_variable_get(:@name) assert_equal :headless_firefox, driver.instance_variable_get(:@browser).name + assert_instance_of Selenium::WebDriver::Firefox::Options, driver.instance_variable_get(:@browser).options assert_equal [1400, 1400], driver.instance_variable_get(:@screen_size) assert_equal ({ url: "http://example.com/wd/hub" }), driver.instance_variable_get(:@options) end |