diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-12-07 14:44:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 14:44:05 -0500 |
commit | e8c3b58cb6e1dd204dd586f1cf6c3e482fb80abe (patch) | |
tree | 67bd58d296bb59a9fa8d8cf285a753bf9c066589 /actionpack/test/dispatch/system_testing/driver_test.rb | |
parent | 6a8ce7416d6615a13ee5c4b9f6bcd91cc5adef4d (diff) | |
parent | 82b974813b28748e5affcff1d8c4ad60ab2971be (diff) | |
download | rails-e8c3b58cb6e1dd204dd586f1cf6c3e482fb80abe.tar.gz rails-e8c3b58cb6e1dd204dd586f1cf6c3e482fb80abe.tar.bz2 rails-e8c3b58cb6e1dd204dd586f1cf6c3e482fb80abe.zip |
Merge pull request #31365 from bogdanvlviv/add-headless_firefox-driver-to-system_tests
Add headless firefox 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 75feae6fe0..fcdaf7fb4c 100644 --- a/actionpack/test/dispatch/system_testing/driver_test.rb +++ b/actionpack/test/dispatch/system_testing/driver_test.rb @@ -25,6 +25,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 firefox" do + 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) + 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) |