mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-21 05:19:42 +08:00
Improve more tests
This commit is contained in:
parent
f1ce3c3cc6
commit
0dca78ecc8
2 changed files with 7 additions and 7 deletions
|
@ -221,7 +221,7 @@ defmodule Livebook.AppTest do
|
|||
Notebook.AppSettings.new()
|
||||
| slug: slug,
|
||||
multi_session: true,
|
||||
auto_shutdown_ms: 1
|
||||
auto_shutdown_ms: 5
|
||||
}
|
||||
|
||||
notebook = %{Notebook.new() | app_settings: app_settings}
|
||||
|
|
|
@ -206,17 +206,17 @@ defmodule LivebookWeb.HomeLiveTest do
|
|||
|
||||
describe "hubs" do
|
||||
test "renders sidebar section", %{conn: conn} do
|
||||
{:ok, _view, html} = live(conn, ~p"/")
|
||||
assert html =~ "HUBS"
|
||||
assert html =~ "Add Organization"
|
||||
{:ok, view, _} = live(conn, ~p"/")
|
||||
assert render(view) =~ "HUBS"
|
||||
assert render(view) =~ "Add Organization"
|
||||
end
|
||||
|
||||
test "renders sidebar persisted hubs", %{conn: conn} do
|
||||
team = insert_hub(:team, id: "team-foo-bar-id")
|
||||
|
||||
{:ok, _view, html} = live(conn, ~p"/")
|
||||
assert html =~ "HUBS"
|
||||
assert html =~ team.hub_name
|
||||
{:ok, view, _} = live(conn, ~p"/")
|
||||
assert render(view) =~ "HUBS"
|
||||
assert render(view) =~ team.hub_name
|
||||
|
||||
Livebook.Hubs.delete_hub("team-foo-bar-id")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue