Skip to content

Commit

Permalink
create test/auth_web/live/groups_live_test.exs for testing Groups Liv…
Browse files Browse the repository at this point in the history
…eView #220
  • Loading branch information
nelsonic committed Oct 22, 2022
1 parent 64a3d35 commit 35bc290
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/auth/person_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Auth.PersonTest do
end

test "verify_person_by_id/1" do
alice = %{email: "alice@gmail.com", auth_provider: "email"}
alice = %{email: "alice@mail.com", auth_provider: "email"}
person = Person.create_person(alice)
assert is_nil(person.status)

Expand Down
12 changes: 12 additions & 0 deletions test/auth_web/live/groups_live_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defmodule AuthWeb.GroupsLiveTest do
use AuthWeb.ConnCase
import Phoenix.LiveViewTest
# alias Phoenix.Socket.Broadcast

test "disconnected and connected render", %{conn: conn} do
conn = non_admin_login(conn)
{:ok, page_live, disconnected_html} = live(conn, "/groups")
assert disconnected_html =~ "Groups"
assert render(page_live) =~ "Groups"
end
end

0 comments on commit 35bc290

Please sign in to comment.