Closed ydah closed 1 year ago
Resolve: https://github.com/rubocop/rubocop-capybara/issues/23#issuecomment-1481609845
This PR is fix an offense message for Capybara/SpecificFinders. Modify the message of the offense as follows:
Capybara/SpecificFinders
find('#some-id') - ^^^^^^^^^^^^^^^^ Prefer `find_by` over `find`. + ^^^^^^^^^^^^^^^^ Prefer `find_by_id` over `find`.
Before submitting the PR make sure the following are checked:
main
CHANGELOG.md
bundle exec rake
Resolve: https://github.com/rubocop/rubocop-capybara/issues/23#issuecomment-1481609845
This PR is fix an offense message for
Capybara/SpecificFinders
. Modify the message of the offense as follows:Before submitting the PR make sure the following are checked:
main
(if not - rebase it).CHANGELOG.md
if the new code introduces user-observable changes.bundle exec rake
) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).