-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[RSpec/Capybara/SpecificMatcher] False-positive with have_table
#1310
Comments
ydah
added a commit
to ydah/rubocop-rspec
that referenced
this issue
Jul 3, 2022
…atcher` Fix: rubocop#1310 Updated to not offense in the case of non-replaceable css selectors. ```ruby expect(page).to have_css('button body') expect(page).to have_css('a,h1') expect(page).to have_css('table>tr') expect(page).to have_css('select+option') ```
5 tasks
ydah
added a commit
to ydah/rubocop-rspec
that referenced
this issue
Jul 3, 2022
…atcher` Fix: rubocop#1310 Updated to not offense in the case of non-replaceable css selectors. ```ruby expect(page).to have_css('button body') expect(page).to have_css('a,h1') expect(page).to have_css('table>tr') expect(page).to have_css('select+option') ```
pirj
added a commit
that referenced
this issue
Jul 3, 2022
[Fix #1310] Fix a false positive for `RSpec/Capybara/SpecificMatcher`
Fixed v2.12.1. Thanks for reporting, @boris-petrov 🙏🏼 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
This results in a
Prefer have_table over have_css.
warning however in this case I have sub-matchers and that can't be replaced withhave_table
.Otherwise the rule works perfect, great work!
cc @ydah
The text was updated successfully, but these errors were encountered: