-
Notifications
You must be signed in to change notification settings - Fork 916
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
use other selector syntax in by_id (fixes #3144) #3145
Conversation
Waiting for philss/floki#548. |
@SteffenDE the new feature (from your PR) is available in Floki v0.36 now :) |
@josevalim I added a TODO to change by_id! as well, but I'm not sure because the current implementation raises when multiple elements are found, while Floki.get_by_id/2 just returns the first one: phoenix_live_view/lib/phoenix_live_view/test/dom.ex Lines 43 to 46 in e66beb6
Let me know what you think. |
So ironically we also needed a find_by_id? :D I am fine with dropping the |
There's one test that relies on it:
|
Yeah, we would have to nuke it, but that’s fine. We do the check for the users convenience. |
💚 💙 💜 💛 ❤️ |
Fixes #3144