memEx/test/memex_web/live/page_live_test.exs
2022-11-03 18:23:17 -04:00

12 lines
322 B
Elixir

defmodule MemexWeb.HomeLiveTest do
use MemexWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Welcome to Memex"
assert render(page_live) =~ "Welcome to Memex"
end
end