Point system spec/test users to go read the relevant external docs

This commit is contained in:
Thomas Walpole 2021-08-15 15:01:28 -07:00
parent d2b1ba32f6
commit ed3c947130
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,8 @@ RSpec](https://relishapp.com/rspec/rspec-rails/v/4-0/docs/directory-structure))
and if you have your Capybara specs in a different directory, then tag the
example groups with `type: :feature` or `type: :system` depending on which type of test you're writing.
If you are using Rails system specs please see [their documentation](https://relishapp.com/rspec/rspec-rails/docs/system-specs/system-spec#system-specs-driven-by-selenium-chrome-headless) for selecting the driver you wish to use.
If you are not using Rails, tag all the example groups in which you want to use
Capybara with `type: :feature`.
@ -258,6 +260,8 @@ end
## <a name="using-capybara-with-minitest"></a>Using Capybara with Minitest
* If you are using Rails system tests please see their documentation for information on selecting the driver you wish to use.
* If you are using Rails, but not using Rails system tests, add the following code in your `test_helper.rb`
file to make Capybara available in all test cases deriving from
`ActionDispatch::IntegrationTest`: