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() Notebook.AppSettings.new()
| slug: slug, | slug: slug,
multi_session: true, multi_session: true,
auto_shutdown_ms: 1 auto_shutdown_ms: 5
} }
notebook = %{Notebook.new() | app_settings: app_settings} notebook = %{Notebook.new() | app_settings: app_settings}

View file

@ -206,17 +206,17 @@ defmodule LivebookWeb.HomeLiveTest do
describe "hubs" do describe "hubs" do
test "renders sidebar section", %{conn: conn} do test "renders sidebar section", %{conn: conn} do
{:ok, _view, html} = live(conn, ~p"/") {:ok, view, _} = live(conn, ~p"/")
assert html =~ "HUBS" assert render(view) =~ "HUBS"
assert html =~ "Add Organization" assert render(view) =~ "Add Organization"
end end
test "renders sidebar persisted hubs", %{conn: conn} do test "renders sidebar persisted hubs", %{conn: conn} do
team = insert_hub(:team, id: "team-foo-bar-id") team = insert_hub(:team, id: "team-foo-bar-id")
{:ok, _view, html} = live(conn, ~p"/") {:ok, view, _} = live(conn, ~p"/")
assert html =~ "HUBS" assert render(view) =~ "HUBS"
assert html =~ team.hub_name assert render(view) =~ team.hub_name
Livebook.Hubs.delete_hub("team-foo-bar-id") Livebook.Hubs.delete_hub("team-foo-bar-id")
end end