Fix broken test

This commit is contained in:
Claudio Ortolina
2025-11-09 19:11:27 +00:00
parent 36d1ba1b48
commit 997ac40cc5
@@ -136,16 +136,9 @@ defmodule MusicLibraryWeb.UniversalSearchLive.IndexTest do
end end
test "hook is attached to the universal search container", %{conn: conn} do test "hook is attached to the universal search container", %{conn: conn} do
{:ok, view, _html} =
conn conn
|> visit(~p"/collection") |> visit(~p"/collection")
|> PhoenixTest.unwrap() |> assert_has("[phx-hook='UniversalSearchNavigation']")
# Get the rendered HTML
html = Phoenix.LiveViewTest.render(view)
# Verify the hook is attached
assert html =~ ~s(phx-hook="UniversalSearchNavigation")
end end
end end
end end