fix: translation of login page
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2026-03-13 14:11:54 +01:00
parent 086ecdcb1b
commit 99a8d64344
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
18 changed files with 487 additions and 200 deletions

View file

@ -28,6 +28,16 @@ defmodule MvWeb.AuthControllerTest do
assert html_response(conn, 200) =~ "Sign in"
end
@tag role: :unauthenticated
test "GET /sign-in returns 200 and renders page (exercises AuthOverrides and layout)", %{
conn: conn
} do
{:ok, _view, html} = live(conn, ~p"/sign-in")
assert html =~ "Sign in"
# Public header (logo) from Layouts.app unauthenticated branch
assert html =~ "mila.svg" or html =~ "Mila Logo"
end
test "GET /sign-out redirects to home", %{conn: authenticated_conn} do
conn = conn_with_oidc_user(authenticated_conn)
conn = get(conn, ~p"/sign-out")