Skip to content

Commit 08e598e

Browse files
committed
System specs: Note on Capybara
1 parent 7ae8b32 commit 08e598e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

features/system_specs/system_specs.feature

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ Feature: System spec
33
System specs are RSpec's wrapper around Rails' own
44
[system tests](https://guides.rubyonrails.org/testing.html#system-testing).
55

6-
Feature specs are marked by `:type => :system` or if you have set
6+
> System tests allow you to test user interactions with your application,
7+
> running tests in either a real or a headless browser. System tests use
8+
> Capybara under the hood.
9+
>
10+
> By default, system tests are run with the Selenium driver, using the
11+
> Chrome browser, and a screen size of 1400x1400. The next section explains
12+
> how to change the default settings.
13+
14+
System specs are marked by `:type => :system` or if you have set
715
`config.infer_spec_type_from_file_location!` by placing them in
816
`spec/system`.
917

10-
System tests allow you to test user interactions with your application,
11-
running tests in either a real or a headless browser. System tests use
12-
Capybara under the hood.
13-
14-
By default, system tests are run with the Selenium driver, using the Chrome
15-
browser, and a screen size of 1400x1400. The next section explains how to
16-
change the default settings.
18+
The Capybara gem is automatically required, so you need that in your
19+
Gemfile. Configure a webserver (e.g. `Capybara.server = :webrick`) before
20+
attempting to use system specs.
1721

1822
RSpec **does not** use your `ApplicationSystemTestCase` helper. Instead it
1923
uses the default `driven_by(:selenium)` from Rails. If you want to override

0 commit comments

Comments
 (0)