Fix page title for scrobble anything index and release group route

This commit is contained in:
Claudio Ortolina
2026-04-23 20:45:51 +01:00
parent 8911afad94
commit 1bd5707cb4
5 changed files with 43 additions and 18 deletions
@@ -51,6 +51,14 @@ defmodule MusicLibraryWeb.ScrobbleLive.ReleaseGroupShowTest do
|> visit(~p"/scrobble/#{@rg_id}")
|> assert_has("a[href='/scrobble']", text: "Back to search")
end
test "sets the page title from the loaded release group", %{conn: conn} do
{:ok, view, _html} = Phoenix.LiveViewTest.live(conn, ~p"/scrobble/#{@rg_id}")
render_async(view)
assert Phoenix.LiveViewTest.page_title(view) ==
"Marillion - Marbles · Release Group · Scrobble Anything"
end
end
describe "fetch failure" do