revert 08c32dce7b
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
revert fix: failing tests from full suite
This commit is contained in:
parent
08c32dce7b
commit
81fb794c76
5 changed files with 11 additions and 14 deletions
|
|
@ -24,15 +24,16 @@ defmodule MvWeb.UserLive.IndexTest do
|
|||
|
||||
@tag :ui
|
||||
test "shows translated titles in different locales", %{conn: conn} do
|
||||
# Page title/heading uses sidebar label (Users / Benutzer*innen), not "Listing Users"
|
||||
# Test German translation
|
||||
conn = conn_with_oidc_user(conn)
|
||||
conn = Plug.Test.init_test_session(conn, locale: "de")
|
||||
{:ok, _view, html_de} = live(conn, "/users")
|
||||
assert html_de =~ "Benutzer*innen"
|
||||
assert html_de =~ "Benutzer*innen auflisten"
|
||||
|
||||
# Test English translation
|
||||
conn = Plug.Test.init_test_session(conn, locale: "en")
|
||||
{:ok, _view, html_en} = live(conn, "/users")
|
||||
assert html_en =~ "Users"
|
||||
assert html_en =~ "Listing Users"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue