memEx/test/memex_web/live/faq_live_test.exs

11 lines
312 B
Elixir
Raw Normal View History

2023-04-13 23:29:29 -04:00
defmodule MemexWeb.FaqLiveTest do
2023-04-14 23:50:16 -04:00
use MemexWeb.ConnCase, async: true
2023-04-13 23:29:29 -04:00
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, page_live, disconnected_html} = live(conn, ~p"/faq")
assert disconnected_html =~ "faq"
assert render(page_live) =~ "faq"
end
end