Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude
have_text
and have_content
that raise ArgumentError
wit…
…h `RSpec/Capybara/VisibilityMatcher` where `:visible` is an invalid option If `:visible` is specified for `have_text` and its alias method, `have_content`, it will result in an `ArgumentError` as follows. Therefore, This PR is excluded `have_text` and `have_content` for `RSpec/Capybara/VisibilityMatcher`. ``` Failure/Error: expect(page).to have_text('a', visible: true) ArgumentError: Invalid option(s) :visible, should be one of :count, :minimum, :maximum, :between, :wait, :exact, :normalize_ws # ./spec/capybara/sandbox_spec.rb:20:in `block (2 levels) in <top (required)>' Failure/Error: expect(page).to have_content('a', visible: true) ArgumentError: Invalid option(s) :visible, should be one of :count, :minimum, :maximum, :between, :wait, :exact, :normalize_ws # ./spec/capybara/sandbox_spec.rb:68:in `block (2 levels) in <top (required)>' ```
- Loading branch information