rubocop / rubocop-capybara

Code style checking for Capybara files.
https://docs.rubocop.org/rubocop-capybara
MIT License
41 stars 8 forks source link

Fix an invalid attributes parse when name with multiple `[]` #80

Closed ydah closed 10 months ago

ydah commented 11 months ago

partially fixed: https://github.com/rubocop/rubocop-capybara/issues/78

following case:

# Offense: Capybara/SpecificMatcher
have_css("input[name='post_author_attributes__first_name_']")

# No offenses: name with multiple `[]`
have_css("input[name='post[author_attributes][first_name]']")

Before submitting the PR make sure the following are checked:

ydah commented 10 months ago

I updated this PR.