diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-13 15:17:17 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-17 07:35:48 +0900 |
commit | ada05850f84ee0eef5413950333e5b5332a64b48 (patch) | |
tree | 58d9b3df5e88c56749088e3e50cd41b071179ec4 /actionpack/test/dispatch/system_testing/driver_test.rb | |
parent | 68a2888ef08faf38c0643921a8259beef5fbe630 (diff) | |
download | rails-ada05850f84ee0eef5413950333e5b5332a64b48.tar.gz rails-ada05850f84ee0eef5413950333e5b5332a64b48.tar.bz2 rails-ada05850f84ee0eef5413950333e5b5332a64b48.zip |
Add headless chrome driver to System Tests
Diffstat (limited to 'actionpack/test/dispatch/system_testing/driver_test.rb')
-rw-r--r-- | actionpack/test/dispatch/system_testing/driver_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/system_testing/driver_test.rb b/actionpack/test/dispatch/system_testing/driver_test.rb index e6f9353b22..75feae6fe0 100644 --- a/actionpack/test/dispatch/system_testing/driver_test.rb +++ b/actionpack/test/dispatch/system_testing/driver_test.rb @@ -17,6 +17,14 @@ class DriverTest < ActiveSupport::TestCase assert_equal ({ url: "http://example.com/wd/hub" }), driver.instance_variable_get(:@options) end + test "initializing the driver with a headless chrome" do + 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) + assert_equal [1400, 1400], driver.instance_variable_get(:@screen_size) + assert_equal ({ url: "http://example.com/wd/hub" }), driver.instance_variable_get(:@options) + end + test "initializing the driver with a poltergeist" do driver = ActionDispatch::SystemTesting::Driver.new(:poltergeist, screen_size: [1400, 1400], options: { js_errors: false }) assert_equal :poltergeist, driver.instance_variable_get(:@name) |