test: added tests
This commit is contained in:
parent
c3502a326e
commit
3cfae95b1e
2 changed files with 48 additions and 1 deletions
12
test/mv_web/components/sort_header_component_test.exs
Normal file
12
test/mv_web/components/sort_header_component_test.exs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue