Rework error messages for failed playcount/bio fetch

This commit is contained in:
Claudio Ortolina
2024-12-27 17:55:34 +00:00
parent 2e8d72fe8f
commit 1a0e505e51
3 changed files with 35 additions and 23 deletions
@@ -70,10 +70,10 @@ defmodule MusicLibraryWeb.ArtistLive.ShowTest do
# play count
refute has_element?(show_live, "span", "123")
assert has_element?(show_live, "div", "There was an error loading the play count")
assert has_element?(show_live, "div", "Error loading play count")
refute has_element?(show_live, "summary", "Biography")
assert has_element?(show_live, "div", "There was an error loading the biography")
assert has_element?(show_live, "div", "Error loading biography")
end
test "it shows records from the collection and the wishlist", %{