home73k/test/home73k_web/live/page_live_test.exs
2021-03-28 21:12:55 -04:00

11 lines
332 B
Elixir

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