fix: correct login heading semantics
This commit is contained in:
parent
902079a9ad
commit
b556ee7e46
|
|
@ -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.")}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user