test: fix tests
This commit is contained in:
parent
17974d7a12
commit
0a1b52d978
2 changed files with 2 additions and 2 deletions
|
|
@ -399,7 +399,7 @@ defmodule MvWeb.UserLive.FormTest do
|
||||||
|
|
||||||
# Test English labels
|
# Test English labels
|
||||||
conn = conn_with_oidc_user(conn, %{email: "admin_en@example.com"})
|
conn = conn_with_oidc_user(conn, %{email: "admin_en@example.com"})
|
||||||
Gettext.put_locale(MvWeb.Gettext, "en")
|
conn = Plug.Test.init_test_session(conn, locale: "en")
|
||||||
{:ok, _view, html_en} = live(conn, "/users/new")
|
{:ok, _view, html_en} = live(conn, "/users/new")
|
||||||
|
|
||||||
assert html_en =~ "New User"
|
assert html_en =~ "New User"
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ defmodule MvWeb.UserLive.IndexTest do
|
||||||
assert html_de =~ "Benutzer*innen auflisten"
|
assert html_de =~ "Benutzer*innen auflisten"
|
||||||
|
|
||||||
# Test English translation
|
# Test English translation
|
||||||
Gettext.put_locale(MvWeb.Gettext, "en")
|
conn = Plug.Test.init_test_session(conn, locale: "en")
|
||||||
{:ok, _view, html_en} = live(conn, "/users")
|
{:ok, _view, html_en} = live(conn, "/users")
|
||||||
assert html_en =~ "Listing Users"
|
assert html_en =~ "Listing Users"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue