OIDC-only sign-in, Vereinfacht connection test, locale defaults, and settings/docs cleanup #445
1 changed files with 5 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ defmodule MvWeb.AuthControllerTest do
|
||||||
# Create unauthenticated conn for this test
|
# Create unauthenticated conn for this test
|
||||||
conn = build_unauthenticated_conn(authenticated_conn)
|
conn = build_unauthenticated_conn(authenticated_conn)
|
||||||
conn = get(conn, ~p"/sign-in")
|
conn = get(conn, ~p"/sign-in")
|
||||||
assert html_response(conn, 200) =~ "Sign in"
|
assert html_response(conn, 200) =~ "Sign in" or html_response(conn, 200) =~ "Anmelden"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "GET /sign-out redirects to home", %{conn: authenticated_conn} do
|
test "GET /sign-out redirects to home", %{conn: authenticated_conn} do
|
||||||
|
|
@ -82,7 +82,8 @@ defmodule MvWeb.AuthControllerTest do
|
||||||
)
|
)
|
||||||
|> render_submit()
|
|> render_submit()
|
||||||
|
|
||||||
assert html =~ "Email or password was incorrect"
|
assert html =~ "Email or password was incorrect" or
|
||||||
|
html =~ "Email oder Passwort nicht korrekt"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "password user with non-existent email shows error via LiveView", %{
|
test "password user with non-existent email shows error via LiveView", %{
|
||||||
|
|
@ -100,7 +101,8 @@ defmodule MvWeb.AuthControllerTest do
|
||||||
)
|
)
|
||||||
|> render_submit()
|
|> render_submit()
|
||||||
|
|
||||||
assert html =~ "Email or password was incorrect"
|
assert html =~ "Email or password was incorrect" or
|
||||||
|
html =~ "Email oder Passwort nicht korrekt"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Registration (LiveView)
|
# Registration (LiveView)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue