fix: translation of login page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
086ecdcb1b
commit
99a8d64344
18 changed files with 487 additions and 200 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue