1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Added example for using headless_chrome with ActionDispatch::SystemTestCase

This commit is contained in:
Pierre Hedkvist 2017-11-16 14:29:15 +00:00
parent eed3d3fff5
commit 5accc63040

View file

@ -671,6 +671,16 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
end 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 If your Capybara configuration requires more setup than provided by Rails, this
additional configuration could be added into the `application_system_test_case.rb` additional configuration could be added into the `application_system_test_case.rb`
file. file.