fix: failing tests
This commit is contained in:
parent
86c032004e
commit
171a699326
1 changed files with 10 additions and 9 deletions
|
|
@ -28,6 +28,8 @@ defmodule MvWeb.JoinLiveEmailFailureTest do
|
|||
|
||||
{:ok, view, _html} = live(conn, "/join")
|
||||
|
||||
# Use the HTML returned by render_submit (updated DOM including flash)
|
||||
html =
|
||||
view
|
||||
|> form("#join-form", %{
|
||||
"email" => "fail#{System.unique_integer([:positive])}@example.com",
|
||||
|
|
@ -37,7 +39,6 @@ defmodule MvWeb.JoinLiveEmailFailureTest do
|
|||
})
|
||||
|> 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue