My space on the web
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
546 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, show_note_live, disconnected_html} = live(conn, "/notes/#{}")
assert disconnected_html =~ note.title
assert disconnected_html =~ note.content
assert render(show_note_live) =~ note.title
assert render(show_note_live) =~ note.content