test updated
This commit is contained in:
parent
fdae610da0
commit
cf354bcf25
4 changed files with 16 additions and 16 deletions
|
|
@ -1,10 +1,11 @@
|
|||
defmodule MvWeb.PageControllerTest do
|
||||
use MvWeb.ConnCase
|
||||
use MvWeb.ConnCase, async: true
|
||||
|
||||
test "GET /", %{conn: conn} do
|
||||
conn = conn_with_oidc_user(conn)
|
||||
test "renders home template successfully with authenticated user", %{conn: conn} do
|
||||
user = create_test_user(%{email: "test@example.com"})
|
||||
conn = conn_with_oidc_user(conn, user)
|
||||
conn = get(conn, "/")
|
||||
|
||||
conn = get(conn, ~p"/")
|
||||
assert html_response(conn, 200) =~ "Mitgliederverwaltung"
|
||||
assert html_response(conn, 200)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue