Link the scrobbled count in stats
This commit is contained in:
@@ -36,6 +36,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
|||||||
title={gettext("Scrobbles")}
|
title={gettext("Scrobbles")}
|
||||||
count={to_compact(@scrobble_count)}
|
count={to_compact(@scrobble_count)}
|
||||||
tooltip={@scrobble_count}
|
tooltip={@scrobble_count}
|
||||||
|
path={~p"/scrobbled-tracks"}
|
||||||
/>
|
/>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
|
|||||||
session =
|
session =
|
||||||
conn
|
conn
|
||||||
|> visit("/")
|
|> visit("/")
|
||||||
|
|> assert_has("dd", "4")
|
||||||
|> assert_has("#album-#{machinarium_soundtrack_track.scrobbled_at_uts}",
|
|> assert_has("#album-#{machinarium_soundtrack_track.scrobbled_at_uts}",
|
||||||
text: "Wishlisted"
|
text: "Wishlisted"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user