diff --git a/test/mv_web/live/profile_navigation_test.exs b/test/mv_web/live/profile_navigation_test.exs index 5ba5eb0..3222825 100644 --- a/test/mv_web/live/profile_navigation_test.exs +++ b/test/mv_web/live/profile_navigation_test.exs @@ -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 diff --git a/test/mv_web/user_live/index_test.exs b/test/mv_web/user_live/index_test.exs index 360ef72..c0b0275 100644 --- a/test/mv_web/user_live/index_test.exs +++ b/test/mv_web/user_live/index_test.exs @@ -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