未验证 提交 c9ee4e72 编写于 作者: M Matthew Draper 提交者: GitHub

Merge pull request #31170 from PHedkvist/system_testing_guides

[ci skip] Added example for using headless_chrome with SystemTest
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册