-
Notifications
You must be signed in to change notification settings - Fork 57
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
assert_select "foo", "x", count: 0 --- no longer works #111
Comments
Hey @michaeleconomy, thanks for opening an issue! Would you be able to provide a script or repo that demonstrates the issue? As a side note, |
This change happened when we upgraded rails from 7.0.5 to 7.0.6. In Rails 7.0.5,
had to be:
|
For reference, this was added in #96 which was included in this release: https://github.com/rails/rails-dom-testing/releases/tag/v2.1.0. |
Was always incorrect.
|
Right on, my bad. Thanks guys! |
Thanks for taking the time for a refresher course on this. |
Steps to reproduce
After upgrading from rails 7.0.4 to 7.0.7
assert_select "foo", "x", count: 0 #no longer works
switching to:
assert_select "foo", text: "x", count: 0 #this has different behavior from the above statement
Expected behavior
i want to test that there is no tag with the specified text.
Actual behavior
I can no longer do this with assert_select on the new rails version.
The text was updated successfully, but these errors were encountered: