Fix broken driver test

Since `selenium-webdrive` v3.1.30, use `goog:chromeOptions'` key for
sending chrome options.
Ref: 0ba8188b1a
This commit is contained in:
yuuji.yaginuma 2019-06-06 13:47:17 +09:00
parent a6154cf330
commit fef8d97a2c
1 changed files with 2 additions and 2 deletions

View File

@ -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