test: fix tests and skip tests for initials generation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e3dd333e89
commit
863821f3ae
5 changed files with 28 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue