Make email request status explicit
Some checks are pending
Quality / full-local-gates (push) Waiting to run

This commit is contained in:
SimpleTest 2026-07-21 23:28:07 +03:00
parent e671e104c7
commit 5881dd62f5
2 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,17 @@
</.header> </.header>
<div class="mx-auto mt-8 max-w-xl rounded-3xl border border-base-300 bg-base-100 p-6 shadow-sm sm:p-8"> <div class="mx-auto mt-8 max-w-xl rounded-3xl border border-base-300 bg-base-100 p-6 shadow-sm sm:p-8">
<div class="flex gap-4"> <div role="status" class="alert alert-success items-start">
<.icon name="hero-check-circle" class="mt-0.5 size-6 shrink-0" />
<div>
<h2 class="font-bold">{gettext("Request accepted")}</h2>
<p class="mt-1 text-sm">
{gettext("The site processed your request. Follow the email instructions if they arrive.")}
</p>
</div>
</div>
<div class="mt-6 flex gap-4">
<div class="grid size-11 shrink-0 place-items-center rounded-full bg-success/15 text-success"> <div class="grid size-11 shrink-0 place-items-center rounded-full bg-success/15 text-success">
<.icon name="hero-envelope" class="size-6" /> <.icon name="hero-envelope" class="size-6" />
</div> </div>
@ -31,7 +41,7 @@
{gettext("Back to log in")} {gettext("Back to log in")}
</.link> </.link>
<.link navigate={~p"/users/register"} class="btn btn-outline"> <.link navigate={~p"/users/register"} class="btn btn-outline">
{gettext("Use another email")} {gettext("Register instead")}
</.link> </.link>
</div> </div>
</div> </div>

View File

@ -35,6 +35,8 @@ defmodule WhoNeedHelpWeb.UserRegistrationControllerTest do
assert get_resp_header(conn, "cache-control") == ["no-store"] assert get_resp_header(conn, "cache-control") == ["no-store"]
assert response =~ "Check your email" assert response =~ "Check your email"
assert response =~ "Request accepted"
assert response =~ ~s(role="status")
assert response =~ "You do not need to enter your address again" assert response =~ "You do not need to enter your address again"
assert response =~ "check Spam" assert response =~ "check Spam"
assert response =~ ~p"/users/log-in" assert response =~ ~p"/users/log-in"