rubocop-rspec
rubocop-rspec copied to clipboard
[RSpec/Capybara/SpecificMatcher] False-positive with pseudo-classes
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
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.