test updated

This commit is contained in:
carla 2025-11-27 15:49:29 +01:00
parent fdae610da0
commit cf354bcf25
4 changed files with 16 additions and 16 deletions

View file

@ -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