2021-04-03 23:22:35 -04:00
|
|
|
defmodule Home73kWeb.BlogLiveTest do
|
2021-03-28 21:12:55 -04:00
|
|
|
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
|