mirror of
https://github.com/ash-project/ash_admin.git
synced 2024-09-20 13:23:30 +12:00
21 lines
434 B
Elixir
21 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
|