cannery/test/lokal_web/live/page_live_test.exs

12 lines
328 B
Elixir
Raw Normal View History

2021-03-11 21:12:55 -05:00
defmodule LokalWeb.PageLiveTest do
use LokalWeb.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