fix: failing tests
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/production Build is failing

This commit is contained in:
Simon 2026-03-13 19:59:59 +01:00
parent 86c032004e
commit 171a699326
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2

View file

@ -28,16 +28,17 @@ defmodule MvWeb.JoinLiveEmailFailureTest do
{:ok, view, _html} = live(conn, "/join")
view
|> form("#join-form", %{
"email" => "fail#{System.unique_integer([:positive])}@example.com",
"first_name" => "Jane",
"last_name" => "Doe",
"website" => ""
})
|> render_submit()
# Use the HTML returned by render_submit (updated DOM including flash)
html =
view
|> form("#join-form", %{
"email" => "fail#{System.unique_integer([:positive])}@example.com",
"first_name" => "Jane",
"last_name" => "Doe",
"website" => ""
})
|> render_submit()
html = render(view)
# Error message is translated; accept English or German wording
assert html =~ "could not send" or html =~ "confirmation email" or
html =~ "konnte nicht" or html =~ "Bestätigungs-E-Mail"