improve tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-15 21:47:50 -04:00
parent beeaf521c5
commit e6ef0a8c68
9 changed files with 4 additions and 42 deletions

View File

@ -22,14 +22,12 @@ defmodule CanneryWeb.InviteLiveTest do
test "lists all invites", %{conn: conn, invite: invite} do
{:ok, _index_live, html} = live(conn, ~p"/invites")
assert html =~ "Invites"
assert html =~ invite.name
end
test "saves new invite", %{conn: conn} do
{:ok, index_live, _html} = live(conn, ~p"/invites")
assert index_live |> element("a", "Create Invite") |> render_click() =~ "New Invite"
assert_patch(index_live, ~p"/invites/new")