This commit is contained in:
Chris McCord 2021-12-14 15:31:02 -05:00
parent 570e86d02c
commit b2950adb2a

View file

@ -14,6 +14,7 @@ defmodule LiveBeatsWeb.ProfileLiveTest do
{:ok, conn: conn, current_user: current_user, user2: user2}
end
describe "own profile" do
test "profile page uploads", %{conn: conn, current_user: current_user} do
profile = MediaLibrary.get_profile!(current_user)
{:ok, lv, dead_html} = live(conn, LiveHelpers.profile_path(current_user))
@ -66,4 +67,9 @@ defmodule LiveBeatsWeb.ProfileLiveTest do
{:ok, refreshed_lv, _} = live(conn, LiveHelpers.profile_path(current_user))
refute render(refreshed_lv) =~ "silence1s"
end
end
describe "viewing other profiles" do
# TODO
end
end