Skip to content

Commit

Permalink
Point system spec/test users to go read the relevant external docs
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Aug 15, 2021
1 parent d2b1ba3 commit ed3c947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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`:
Expand Down

0 comments on commit ed3c947

Please sign in to comment.