Compare commits

..

2 commits

Author SHA1 Message Date
05241ad292
Show dates in european format
Some checks failed
continuous-integration/drone/push Build is failing
2025-12-02 17:13:07 +01:00
dd824d599e
Hide OIDC ID and ID columns for users 2025-12-02 17:13:07 +01:00
2 changed files with 8 additions and 0 deletions

View file

@ -90,6 +90,8 @@ defmodule MvWeb.ProfileNavigationTest do
# Verify we're on the correct profile page with OIDC specific information
{:ok, _profile_view, html} = live(conn, "/users/#{user.id}")
assert html =~ to_string(user.email)
# OIDC ID should be visible
assert html =~ "oidc_123"
# Password auth should be disabled for OIDC users
assert html =~ "Not enabled"
end

View file

@ -33,6 +33,8 @@ defmodule MvWeb.UserLive.IndexTest do
assert html =~ "alice@example.com"
assert html =~ "bob@example.com"
assert html =~ "alice123"
assert html =~ "bob456"
end
test "shows correct action links", %{conn: conn} do
@ -384,6 +386,10 @@ defmodule MvWeb.UserLive.IndexTest do
# Should still show the table structure
assert html =~ "Email"
assert html =~ "OIDC ID"
# Should show the authenticated user at minimum
# Matches the generated email pattern oidc.user{unique_id}@example.com
assert html =~ "oidc.user"
end
test "handles users with missing OIDC ID", %{conn: conn} do