Compute artist play count from db

This commit is contained in:
Claudio Ortolina
2026-03-24 15:07:50 +00:00
parent d5be6e6182
commit c9283d7f28
5 changed files with 13 additions and 42 deletions
@@ -43,7 +43,7 @@ defmodule MusicLibraryWeb.ArtistLive.ShowTest do
conn
|> visit(~p"/artists/#{artist_musicbrainz_id}")
|> unwrap(&render_async/1)
|> assert_has("span", "123")
|> assert_has("span", "No scrobbles")
|> assert_has("dt", "Biography")
end
@@ -64,9 +64,8 @@ defmodule MusicLibraryWeb.ArtistLive.ShowTest do
conn
|> visit(~p"/artists/#{artist_musicbrainz_id}")
|> unwrap(&render_async/1)
|> refute_has("span", "123")
|> assert_has("span", "No scrobbles")
|> refute_has("summary", "Biography")
|> assert_has("div", "Error loading play count")
|> assert_has("div", "Error loading biography")
end