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.

18 lines
531 B

defmodule MirageWeb.ShowNoteLiveTest do
use MirageWeb.ConnCase
import Phoenix.LiveViewTest
import Mirage.NoteFixtures
describe "show note" do
setup [:create_note]
test "disconnected and connected render", %{conn: conn, note: note} do
{:ok, page_live, disconnected_html} = live(conn, "/notes/#{}")
assert disconnected_html =~ note.title
assert disconnected_html =~ note.content
assert render(page_live) =~ note.title
assert render(page_live) =~ note.content