cannery/test/lokal_web/live/page_live_test.exs

12 lines
322 B
Elixir
Raw Normal View History

2022-05-05 21:47:22 -04:00
defmodule LokalWeb.HomeLiveTest do
2021-03-11 21:12:55 -05:00
use LokalWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
2022-01-22 15:00:30 -05:00
assert disconnected_html =~ "Welcome to Lokal"
assert render(page_live) =~ "Welcome to Lokal"
2021-03-11 21:12:55 -05:00
end
end