Finalize join request feature #472

Merged
simon merged 18 commits from feature/308-web-form into main 2026-03-13 20:51:11 +01:00
Showing only changes of commit 171a699326 - Show all commits

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"