Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSpec/Capybara/SpecificMatcher] False-positive with pseudo-classes #1351

Closed
boris-petrov opened this issue Aug 3, 2022 · 1 comment · Fixed by #1361
Closed

[RSpec/Capybara/SpecificMatcher] False-positive with pseudo-classes #1351

boris-petrov opened this issue Aug 3, 2022 · 1 comment · Fixed by #1361

Comments

@boris-petrov
Copy link

expect(page).to have_selector('button:first-of-type:focus')

This gives a warning but I don't think it's possible to express this with have_button.

cc @ydah

@ydah
Copy link
Member

ydah commented Aug 4, 2022

Indeed it is. Thank you so much @boris-petrov

I guess we need to consider the cases that cannot be replaced by pseudo-classes.
It may take some time, but I will work on it.

ydah added a commit to ydah/rubocop-rspec that referenced this issue Aug 16, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Aug 25, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Aug 30, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 1, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 1, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 1, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 1, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 2, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 2, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 4, 2022
ydah added a commit to ydah/rubocop-rspec that referenced this issue Sep 7, 2022
pirj pushed a commit to rubocop/rubocop-capybara that referenced this issue Dec 29, 2022
ydah added a commit to rubocop/rubocop-factory_bot that referenced this issue Apr 13, 2023
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this issue Mar 27, 2024
ydah added a commit to rubocop/rubocop-rspec_rails that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants