email signup up flow in dev mode, therefore in place for prod

This commit is contained in:
2026-11-05 14:11:12 +01:00
parent 6b0e0ed352
commit e89df68e7d
12 changed files with 271 additions and 11 deletions
@@ -3,6 +3,7 @@ defmodule ChesstrainerWeb.UserLive.RegistrationTest do
import Phoenix.LiveViewTest
import Chesstrainer.AccountsFixtures
import Swoosh.TestAssertions
describe "Registration page" do
test "renders registration page", %{conn: conn} do
@@ -56,7 +57,10 @@ defmodule ChesstrainerWeb.UserLive.RegistrationTest do
render_submit(form)
|> follow_redirect(conn, ~p"/users/log-in")
assert html =~ "Account created successfully"
assert html =~
"An email with instructions for how to confirm your email address has been sent to your inbox."
assert_email_sent(subject: "Confirmation instructions")
end
test "renders errors for duplicated email", %{conn: conn} do