aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_test_case.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2017-12-07 20:02:34 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2017-12-07 20:20:54 +0200
commit82b974813b28748e5affcff1d8c4ad60ab2971be (patch)
tree083dedbde855620fce7fa67c947c3129dff6439a /actionpack/lib/action_dispatch/system_test_case.rb
parentbbacd60048a8efa1777a01292a9392e146a7d885 (diff)
downloadrails-82b974813b28748e5affcff1d8c4ad60ab2971be.tar.gz
rails-82b974813b28748e5affcff1d8c4ad60ab2971be.tar.bz2
rails-82b974813b28748e5affcff1d8c4ad60ab2971be.zip
Add headless firefox driver to System Tests
Diffstat (limited to 'actionpack/lib/action_dispatch/system_test_case.rb')
-rw-r--r--actionpack/lib/action_dispatch/system_test_case.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/system_test_case.rb b/actionpack/lib/action_dispatch/system_test_case.rb
index 7246e01cff..99d0c06751 100644
--- a/actionpack/lib/action_dispatch/system_test_case.rb
+++ b/actionpack/lib/action_dispatch/system_test_case.rb
@@ -121,11 +121,15 @@ module ActionDispatch
#
# driven_by :poltergeist
#
- # driven_by :selenium, using: :firefox
+ # driven_by :selenium, screen_size: [800, 800]
+ #
+ # driven_by :selenium, using: :chrome
#
# driven_by :selenium, using: :headless_chrome
#
- # driven_by :selenium, screen_size: [800, 800]
+ # driven_by :selenium, using: :firefox
+ #
+ # driven_by :selenium, using: :headless_firefox
def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400], options: {})
self.driver = SystemTesting::Driver.new(driver, using: using, screen_size: screen_size, options: options)
end