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:
parent
eed3d3fff5
commit
5accc63040
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue