Skip to content

Fix assert_not_select on body for text or html #125

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

3v0k4
Copy link

@3v0k4 3v0k4 commented May 31, 2025

Hey!

First of all, thank you so much for your work on this gem 🙏

While working on a project, I wrote the following test:

get foo_path
assert_dom "body", /bar/
make_bar_disappear_in_the_body
get foo_path
assert_not_dom "body", /bar/

The problem is that, with the current code, the last assertion always passes (even with "bar" in the body).

This PR fixes it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant