Improve more tests

This commit is contained in:
Jonatan Kłosko 2023-10-25 00:44:22 +07:00
parent f1ce3c3cc6
commit 0dca78ecc8
2 changed files with 7 additions and 7 deletions

View file

@ -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}

View file

@ -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