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

Fix :button selector evaluating :link_or_button expression filters #2131

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

twalpole
Copy link
Member

@twalpole twalpole commented Nov 16, 2018

Fix for issue mentioned in https://groups.google.com/forum/#!topic/ruby-capybara/-RBMNqYvEuo .

When the link_or_button selector combines the link and button selectors expression_filters refers to the link_or_button selector which ends up creating incorrect attribute matchers. This fixes it by limiting to only expected attributes.

@shepmaster
Copy link
Contributor

shepmaster commented Nov 16, 2018

Yes, this seems to fix my issue, thank you.

It figures the one time I don't think it's a bug so I post to the group, it turns out to be a bug.

@twalpole
Copy link
Member Author

@shepmaster Sorry about this one -- Definitely was not intended to break the use case of modifying the filter. Thanks for reporting it. I'll release 3.11.1 in a few hours.

@twalpole twalpole merged commit 2635eff into 3.11_stable Nov 16, 2018
@twalpole twalpole deleted the link_or_button_expression branch November 21, 2018 03:37
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 this pull request may close these issues.

None yet

2 participants