2021-09-10 00:28:53 -04:00
|
|
|
defmodule CanneryWeb.HomeLiveTest do
|
|
|
|
use CanneryWeb.ConnCase
|
|
|
|
import Phoenix.LiveViewTest
|
2022-02-08 23:58:54 -05:00
|
|
|
import CanneryWeb.Gettext
|
2021-09-10 00:28:53 -04:00
|
|
|
|
|
|
|
test "disconnected and connected render", %{conn: conn} do
|
|
|
|
{:ok, home_live, disconnected_html} = live(conn, "/")
|
|
|
|
assert disconnected_html =~ "Welcome to Cannery"
|
|
|
|
assert render(home_live) =~ "Welcome to Cannery"
|
|
|
|
end
|
|
|
|
end
|