12 lines
357 B
Elixir
12 lines
357 B
Elixir
defmodule CanneryWeb.HomeLiveTest do
|
|
use CanneryWeb.ConnCase
|
|
import Phoenix.LiveViewTest
|
|
import CanneryWeb.Gettext
|
|
|
|
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
|