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