-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcapybara.yml
47 lines (36 loc) · 910 Bytes
/
capybara.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Config for RuboCop Capybara
#
# https://github.com/rubocop/rubocop-capybara/blob/v2.21.0/config/default.yml
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html
require:
- rubocop-capybara
Capybara/ClickLinkOrButtonStyle:
Enabled: true
EnforcedStyle: link_or_button
# Default values:
# EnforcedStyle: link_or_button
Capybara/CurrentPathExpectation:
Enabled: true
Capybara/MatchStyle:
Enabled: true
Capybara/NegationMatcher:
Enabled: true
EnforcedStyle: not_to
# Default values:
# EnforcedStyle: have_no
# See also: RSpec/ReceiveNever.
Capybara/RSpec/HaveSelector:
Enabled: true
DefaultSelector: css
# Default values:
# DefaultSelector: css
Capybara/RedundantWithinFind:
Enabled: true
Capybara/SpecificActions:
Enabled: true
Capybara/SpecificFinders:
Enabled: false
Capybara/SpecificMatcher:
Enabled: true
Capybara/VisibilityMatcher:
Enabled: true