aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorPierre Hedkvist <pierre.hedkvist@gmail.com>2017-11-16 14:29:15 +0000
committerPierre Hedkvist <pierre.hedkvist@gmail.com>2017-11-18 19:02:37 +0000
commit5accc6304085c0e415658897a07d3a4c22d9d39e (patch)
tree9ec02e597ba84539628ea9a772f287b7961d4bd1 /guides/source/testing.md
parenteed3d3fff5ca6be00b2fe0fe020bd025ddbabbd5 (diff)
downloadrails-5accc6304085c0e415658897a07d3a4c22d9d39e.tar.gz
rails-5accc6304085c0e415658897a07d3a4c22d9d39e.tar.bz2
rails-5accc6304085c0e415658897a07d3a4c22d9d39e.zip
[ci skip] Added example for using headless_chrome with ActionDispatch::SystemTestCase
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index c5b2a694e7..8416fd163d 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -671,6 +671,16 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
end
```
+If you want to use a headless browser, you could use Headless Chrome by adding `headless_chrome` in the `:using` argument.
+
+```ruby
+require "test_helper"
+
+class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
+ driven_by :selenium, using: :headless_chrome
+end
+```
+
If your Capybara configuration requires more setup than provided by Rails, this
additional configuration could be added into the `application_system_test_case.rb`
file.