fix: correct login heading semantics

This commit is contained in:
SimpleTest 2026-07-24 00:26:13 +03:00
parent 902079a9ad
commit b556ee7e46
2 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<div class="space-y-4">
<div class="text-center">
<.header>
<p>{gettext("Log in")}</p>
{gettext("Log in")}
<:subtitle>
<%= if @current_scope do %>
{gettext("You need to reauthenticate to perform sensitive actions on your account.")}

View File

@ -21,6 +21,9 @@ defmodule WhoNeedHelpWeb.UserSessionControllerTest do
assert response =~ "Use a password instead"
assert response =~ ~s(id="magic-link-fragment-form")
assert response =~ ~s(hidden)
assert response =~ ~r/<h1[^>]*>\s*Log in\s*<\/h1>/s
refute response =~ ~r/<h1[^>]*>\s*<p\b/s
end
test "renders login page with email filled in (sudo mode)", %{conn: conn, user: user} do