cannery/test/lokal_web/live/page_live_test.exs
2022-01-22 15:24:04 -05:00

12 lines
322 B
Elixir

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 Lokal"
assert render(page_live) =~ "Welcome to Lokal"
end
end