diff options
author | Matthew Draper <matthew@trebex.net> | 2017-11-20 10:14:31 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 10:14:31 +1030 |
commit | c9ee4e729e70a98b1d1db04edc95cb6c3b793f1f (patch) | |
tree | 43c10805aba165c445476790bc5bce92608359ba /guides/source | |
parent | e05e2ae44f1ecf8e9bb5949f531305c15bc3c665 (diff) | |
parent | 5accc6304085c0e415658897a07d3a4c22d9d39e (diff) | |
download | rails-c9ee4e729e70a98b1d1db04edc95cb6c3b793f1f.tar.gz rails-c9ee4e729e70a98b1d1db04edc95cb6c3b793f1f.tar.bz2 rails-c9ee4e729e70a98b1d1db04edc95cb6c3b793f1f.zip |
Merge pull request #31170 from PHedkvist/system_testing_guides
[ci skip] Added example for using headless_chrome with SystemTest
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/testing.md | 10 |
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. |