memEx/test/memex_web/live/page_live_test.exs

12 lines
322 B
Elixir
Raw Normal View History

2023-02-26 00:47:51 -05:00
defmodule MemexWeb.HomeLiveTest do
use MemexWeb.ConnCase
2021-03-11 21:12:55 -05:00
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, "/")
2023-02-26 00:47:51 -05:00
assert disconnected_html =~ "Welcome to Memex"
assert render(page_live) =~ "Welcome to Memex"
2021-03-11 21:12:55 -05:00
end
end