aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-06-06 13:47:17 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-06-06 13:47:17 +0900
commitfef8d97a2c75511df62915b617743b47f1a2f43a (patch)
treefe54a9241bc2ce3f7dc9f35aabe0f7144892f41d /actionpack
parenta6154cf3307e36a3ba58fcfd38726c0073cf03b2 (diff)
downloadrails-fef8d97a2c75511df62915b617743b47f1a2f43a.tar.gz
rails-fef8d97a2c75511df62915b617743b47f1a2f43a.tar.bz2
rails-fef8d97a2c75511df62915b617743b47f1a2f43a.zip
Fix broken driver test
Since `selenium-webdrive` v3.1.30, use `goog:chromeOptions'` key for sending chrome options. Ref: https://github.com/SeleniumHQ/selenium/commit/0ba8188b1a26ff3587f08afa6b6182c32479e980
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/system_testing/driver_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/system_testing/driver_test.rb b/actionpack/test/dispatch/system_testing/driver_test.rb
index 0d08f17af3..7ef306d04b 100644
--- a/actionpack/test/dispatch/system_testing/driver_test.rb
+++ b/actionpack/test/dispatch/system_testing/driver_test.rb
@@ -66,7 +66,7 @@ class DriverTest < ActiveSupport::TestCase
end
driver.use
- expected = { args: ["start-maximized"], mobileEmulation: { deviceName: "iphone 6" }, prefs: { detach: true } }
+ expected = { "goog:chromeOptions" => { args: ["start-maximized"], mobileEmulation: { deviceName: "iphone 6" }, prefs: { detach: true } } }
assert_equal expected, driver_option.as_json
end
@@ -81,7 +81,7 @@ class DriverTest < ActiveSupport::TestCase
end
driver.use
- expected = { args: ["start-maximized"], mobileEmulation: { deviceName: "iphone 6" }, prefs: { detach: true } }
+ expected = { "goog:chromeOptions" => { args: ["start-maximized"], mobileEmulation: { deviceName: "iphone 6" }, prefs: { detach: true } } }
assert_equal expected, driver_option.as_json
end