Recent Releases of https://github.com/rubocop/rubocop-capybara
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v3.1.0
- Add new
Capybara/UnorderedWindowAccesscop. (@ydah) - Add new
Capybara/AbsoluteXPathInElementScopecop. (@ydah) - Add new
Capybara/AlwaysTrueCountQuerycop. (@ydah) - Add new
Capybara/RSpec/CurrentUrlExpectationcop. (@ydah) - Add new
Capybara/ModalMethodWithoutBlockcop. (@ydah) - Add new
Capybara/NativeAttributecop. (@ydah) - Add new
Capybara/VisibilityOptioncop. (@ydah) - Add new
Capybara/ChainedFindcop. (@ydah) - Add new
Capybara/IgnoredQueryOptioncop. (@ydah) - Add new
Capybara/RSpec/FindElementValueEqcop. (@ydah) - Recognize
have_elementandhave_no_elementin the RSpec negation cops. (@ydah) - Detect
have_no_selectorinCapybara/RSpec/HaveSelector. (@ydah) - Autocorrect
visible: trueinCapybara/RSpec/VisibilityMatcherfor known selectors. (@ydah) - Add support for using
findwith:linkand:fieldinCapybara/SpecificFinderscop. (@ydah) - Speed up loading rubocop-capybara by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. (@koic)
- Fix false positives in
Capybara/RSpec/SpecificMatcherfor input types excluded byhave_field. (@ydah) - Avoid interpolating literal
#{...},#@..., and#$...patterns inCapybara/RSpec/CurrentPathExpectationandCapybara/RSpec/CurrentUrlExpectationautocorrection. (@ydah) - Fix false positives and negatives for
Capybara/SpecificActionswhen CSS attribute values contain spaces. (@ydah) - Honor
DefaultSelector: nullin selector-dependent cops, includingCapybara/RSpec/HaveSelector. (@ydah) - Fix false positives for custom elements in
Capybara/SpecificActionsandCapybara/RSpec/SpecificMatcher. (@ydah) - Avoid unsafe block autocorrection and unnecessary receiver parentheses in
Capybara/RSpec/PredicateMatcher. (@ydah) - Fix a crash in
Capybara/RSpec/CurrentPathExpectationfor invalid regexp strings. (@ydah) - Fix
Capybara/SpecificFinderswhen CSS id values aretrueorfalse. (@ydah) - Fix a crash in
Capybara/SpecificActionsfor blankfindselectors. (@ydah) - Fix reversed autocorrection in
Capybara/RSpec/PredicateMatcherforeqlandequalboolean matchers. (@ydah) - Avoid errors and unsafe autocorrection in
Capybara/SpecificFinderswith dynamicclass:options. (@ydah) - Fix incorrect autocorrections and missed offenses for non-CSS locators in
Capybara/SpecificFinders. (@ydah) - Use the
:idselector whenCapybara/RedundantWithinFindautocorrectsfind_by_id, preserving special and dynamic IDs. (@ydah) - Avoid unsafe
find_fieldautocorrections for input types and boolean attributes inCapybara/SpecificFinders. (@ydah) - Fix false positives and incorrect autocorrections for
Capybara/FindAllFirstwhenfindorallusesmatch: :first. (@ydah) - Avoid
Capybara/FindAllFirstoffenses when the result is used with safe navigation or as a condition. (@ydah) - Fix an incorrect autocorrect for
Capybara/RedundantWithinFindwhenfind_by_iduses a dynamic id. (@ydah) - Fix an incorrect autocorrect for
Capybara/RedundantWithinFindwhen a finder call has a block argument. (@ydah) - Fix a false positive for
Capybara/RSpec/HaveSelectorwhenDefaultSelectoris unsupported. (@ydah) - Fix an incorrect autocorrect for
Capybara/SpecificFinderswhen a selector class is empty or contains an escaped dot. (@ydah) - Fix a false positive for
Capybara/SpecificFinderswhen an id selector contains unsupported CSS identifier syntax. (@ydah) - Fix a false negative for
Capybara/RSpec/NegationMatcherAfterVisitwhen usingto_not. (@ydah) - Fix an incorrect autocorrect for
Capybara/RSpec/PredicateMatcherwhenEnforcedStyle: explicitandexpectactual is a complex expression. (@ydah) - Fix
Capybara/RSpec/CurrentPathExpectationautocorrection formatchwhen the URL has a query string. (@ydah) - Fix a false positive for
Capybara/SpecificActionswhenclickuses arguments or a block. (@ydah) - Fix an incorrect autocorrect for
Capybara/SpecificFinderswhen a selector class is used with nestedclass:options. (@ydah) - Fix CSS attribute parsing when attribute values contain quotes. (@ydah)
- Fix CSS attribute parsing to return raw values and format Ruby literals in autocorrection. (@ydah)
- Fix a false negative for
Capybara/SpecificFinderswhen usingfindwith input field attributes. (@ydah)
- Ruby
Published by github-actions[bot] about 1 month ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v3.0.0
- Enable pending cops by default for the 3.0 release. (@ydah)
- Remove the deprecated
Capybara/ClickLinkOrButtonStylecop. (@ydah) - Remove obsolete cop name migration config for the 2.x to 3.0 transition. (@ydah)
- Ruby
Published by github-actions[bot] 5 months ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.23.0
- Bump RuboCop requirement to +1.81. (@ydah)
- Add new
Capybara/RSpec/HaveContentcop. (@nzlaura) - Move the department associated with
Capybara::RSpecMatcherstoCapybara/RSpec/*. (@ydah)- Rename
Capybara/CurrentPathExpectationtoCapybara/RSpec/CurrentPathExpectation - Rename
Capybara/SpecificMatchertoCapybara/RSpec/SpecificMatcher - Rename
Capybara/NegationMatchertoCapybara/RSpec/NegationMatcher - Rename
Capybara/NegationMatcherAfterVisittoCapybara/RSpec/NegationMatcherAfterVisit - Rename
Capybara/VisibilityMatchertoCapybara/RSpec/VisibilityMatcher
- Rename
- Split
Capybara/MatchStyleintoCapybara/AssertStyleandCapybara/RSpec/MatchStyle. (@ydah) - Fix a false positive for
Capybara/FindAllFirstwhen using logical operators withall('...')[0]. (@ydah) - Fix an incorrect autocorrect for
Capybara/FindAllFirstwhenfindorallwithmatch: :firstuses a receiver and mark autocorrection as unsafe. (@ydah) - Fix an error for
Capybara/RSpec/HaveSelectorwhen passing only a selector type. (@ydah)
- Ruby
Published by github-actions[bot] 7 months ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.22.1
- Fix incorrect plugin version. (@koic)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.22.0
- Add
Capybara/AmbiguousClickcop and make soft-deprecatedCapybara/ClickLinkOrButtonStylecop. If you want to useEnforcedStyle: strict, useCapybara/AmbiguousClickcop instead. (@ydah) - Add new
Capybara/FindAllFirstcop. (@ydah) - Add a new
Capybara/NegationMatcherAfterVisitcop. (@ydah) - Fix an error for
Capybara/RSpec/HaveSelectorwhen passing no arguments. (@earlopain) - Make RuboCop Capybara work as a RuboCop plugin. (@bquorning)
- Ruby
Published by github-actions[bot] over 1 year ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.21.0
- Fix a false negative for
Capybara/NegationMatcherwhen usingto_not. (@ydah) - Fix a false negative for
Capybara/SpecificFinderswhen usingfind(:id, 'some-id'). (@ydah)
- Ruby
Published by github-actions[bot] over 2 years ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.20.0
What's Changed
- Add new
Capybara/RedundantWithinFindcop. (@ydah) - Change to default
EnforcedStyle: link_or_buttonforCapybara/ClickLinkOrButtonStylecop. (@ydah) - Change to default
EnforcedStyle: have_noforCapybara/NegationMatchercop. (@ydah) - Fix a false negative for
RSpec/HaveSelectorwhen first argument is dstr node. (@ydah) - Fix an invalid attributes parse when name with multiple
[]forCapybara/SpecificFindersandCapybara/SpecificActionsandCapybara/SpecificMatcher. (@ydah) - Fix a false positive for
Capybara/SpecificMatcherwhentext:orexact_text:with regexp. (@ydah)
Full Changelog: https://github.com/rubocop/rubocop-capybara/compare/v2.19.0...v2.20.0
- Ruby
Published by ydah almost 3 years ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.19.0
What's Changed
- Add new
Capybara/RSpec/PredicateMatchercop. (@ydah) - Add new
Capybara/RSpec/HaveSelectorcop. (@ydah) - Add new
Capybara/ClickLinkOrButtonStylecop. (@ydah) - Fix a false positive for
Capybara/SpecificFinderswhenfindwith kind option. (@ydah) - Fix an incorrect autocorrect for
Capybara/CurrentPathExpectation. (@ydah) - Drop Ruby 2.6 support. (@ydah)
Full Changelog: https://github.com/rubocop/rubocop-capybara/compare/v2.18.0...v2.19.0
- Ruby
Published by ydah about 3 years ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.18.0
- Fix an offense message for
Capybara/SpecificFinders. (@ydah) - Expand
Capybara/NegationMatcherto supporthave_content(@OskarsEzerins) - Fix an incorrect autocorrect for
Capybara/CurrentPathExpectationwhen matcher's argument is a method with a argument and no parentheses. (@ydah)
- Ruby
Published by ydah over 3 years ago
https://github.com/rubocop/rubocop-capybara - RuboCop Capybara v2.17.1
- Fix an incorrect autocorrect for
Capybara/CurrentPathExpectation. (@ydah) - Fix a false negative for
Capybara/CurrentPathExpectationwhen usingmatch. (@ydah) - Fix a false positive and incorrect autocorrect for
Capybara/SpecificActions,Capybara/SpecificFindersandCapybara/SpecificMatcher. (@ydah)
- Ruby
Published by ydah almost 4 years ago