Class: RuboCop::Cop::RSpec::Capybara::VisibilityMatcher
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher
- Defined in:
- lib/rubocop/cop/rspec/capybara/visibility_matcher.rb
Overview
Checks for boolean visibility in Capybara finders.
Capybara lets you find elements that match a certain visibility using the ‘:visible` option. `:visible` accepts both boolean and symbols as values, however using booleans can have unwanted effects. `visible: false` does not find just invisible elements, but both visible and invisible elements. For expressiveness and clarity, use one of the # symbol values, `:all`, `:hidden` or `:visible`. Read more in www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation].