test: added tests

This commit is contained in:
carla 2025-09-30 16:19:52 +02:00 committed by moritz
parent c3502a326e
commit 3cfae95b1e
2 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,12 @@
defmodule MvWeb.Components.SortHeaderComponentTest do
use MvWeb.ConnCase, async: true
use Phoenix.Component
import Phoenix.LiveViewTest
test "renders sort header with correct attributes", %{conn: conn} do
conn = conn_with_oidc_user(conn)
{:ok, view, _html} = live(conn, "/members")
assert view |> element("[data-testid='first_name']")
end
end