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