diff --git a/test/media_server_web/live/history_live_test.exs b/test/media_server_web/live/history_live_test.exs new file mode 100644 index 00000000..048aa912 --- /dev/null +++ b/test/media_server_web/live/history_live_test.exs @@ -0,0 +1,17 @@ +defmodule MediaServerWeb.HistoryLiveTest do + use MediaServerWeb.ConnCase + + import Phoenix.LiveViewTest + + alias MediaServer.AccountsFixtures + + setup %{conn: conn} do + %{conn: conn |> log_in_user(AccountsFixtures.user_fixture())} + end + + test "it should render", %{conn: conn} do + {:ok, view, _disconnected_html} = live(conn, ~p"/history") + + assert render(view) =~ "History" + end +end