cannery/test/cannery_web/live/page_live_test.exs
2021-09-02 18:25:40 -04:00

12 lines
332 B
Elixir

defmodule CanneryWeb.PageLiveTest do
use CanneryWeb.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