ash_admin/test/page_live_test.exs
2022-05-25 12:17:52 -04:00

20 lines
434 B
Elixir

defmodule AshAdmin.Test.PageLiveTest do
use ExUnit.Case, async: false
import Plug.Conn
import Phoenix.ConnTest
import Phoenix.LiveViewTest
@endpoint AshAdmin.Test.Endpoint
setup do
%{conn: build_conn()}
end
test "it renders the schema by default", %{conn: conn} do
{:ok, _view, html} = live(conn, "/Api/Post")
assert html =~ "Attributes"
assert html =~ "body"
assert html =~ "String"
end
end