Minor test refactoring to improve on performance closes #383 #384

Merged
simon merged 23 commits from test-performance-optimization into main 2026-01-29 15:44:01 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 0a1b52d978 - Show all commits

View file

@ -399,7 +399,7 @@ defmodule MvWeb.UserLive.FormTest do
# Test English labels
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")
assert html_en =~ "New User"

View file

@ -32,7 +32,7 @@ defmodule MvWeb.UserLive.IndexTest do
assert html_de =~ "Benutzer*innen auflisten"
# 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")
assert html_en =~ "Listing Users"
end