test: fix tests and skip tests for initials generation
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon 2025-09-29 16:05:00 +02:00
parent e3dd333e89
commit 863821f3ae
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
5 changed files with 28 additions and 21 deletions

View file

@ -21,6 +21,8 @@ defmodule MvWeb.Layouts.NavbarTest do
assert html =~ "Profil"
end
@tag :skip
# TODO: Implement user initials in navbar avatar - see issue #170
test "shows user initials in avatar", %{conn: _conn} do
# Setup: Create a user with specific email for testing initials
user = create_test_user(%{email: "test.user@example.com"})
@ -32,6 +34,8 @@ defmodule MvWeb.Layouts.NavbarTest do
assert html =~ "<span>TU</span>" # Initials from test.user@example.com
end
@tag :skip
# TODO: Implement user initials in navbar avatar - see issue #170
test "shows different initials for OIDC user", %{conn: _conn} do
# Setup: Create OIDC user
user_info = %{
@ -70,7 +74,7 @@ defmodule MvWeb.Layouts.NavbarTest do
assert html =~ "Logout"
# Check for correct logout path
assert html =~ ~s(href="sign-out")
assert html =~ ~s(href="/sign-out")
end
end
end