fix: failing tests
This commit is contained in:
parent
86c032004e
commit
171a699326
1 changed files with 10 additions and 9 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue