Code review: SignInLive locale fallback, single root + id, CSS scoped to #sign-in-page, remove or-hack, refresh oidc_configured after save, tests assert English only

This commit is contained in:
Moritz 2026-02-24 15:41:30 +01:00
parent 951d01dc4d
commit fae1804fb1
Signed by: moritz
GPG key ID: 1020A035E5DD0824
4 changed files with 33 additions and 51 deletions

View file

@ -25,7 +25,7 @@ defmodule MvWeb.AuthControllerTest do
# Create unauthenticated conn for this test
conn = build_unauthenticated_conn(authenticated_conn)
conn = get(conn, ~p"/sign-in")
assert html_response(conn, 200) =~ "Sign in" or html_response(conn, 200) =~ "Anmelden"
assert html_response(conn, 200) =~ "Sign in"
end
test "GET /sign-out redirects to home", %{conn: authenticated_conn} do
@ -82,8 +82,7 @@ defmodule MvWeb.AuthControllerTest do
)
|> render_submit()
assert html =~ "Email or password was incorrect" or
html =~ "Email oder Passwort nicht korrekt"
assert html =~ "Email or password was incorrect"
end
test "password user with non-existent email shows error via LiveView", %{
@ -101,8 +100,7 @@ defmodule MvWeb.AuthControllerTest do
)
|> render_submit()
assert html =~ "Email or password was incorrect" or
html =~ "Email oder Passwort nicht korrekt"
assert html =~ "Email or password was incorrect"
end
# Registration (LiveView)