My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
390 B

defmodule MirageWeb.HomeLiveTest do
use MirageWeb.ConnCase
import Phoenix.LiveViewTest
test "disconnected and connected render", %{conn: conn} do
{:ok, home_live, disconnected_html} = live(conn, "/")
assert disconnected_html =~ "Hi"
assert disconnected_html =~ "some tagline"
assert render(home_live) =~ "Hi"
assert render(home_live) =~ "some tagline"
end
end