Fix broken test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user