From 0dca78ecc89b5288622bf03801c535ccec595c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 25 Oct 2023 00:44:22 +0700 Subject: [PATCH] Improve more tests --- test/livebook/app_test.exs | 2 +- test/livebook_web/live/home_live_test.exs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/livebook/app_test.exs b/test/livebook/app_test.exs index e03c174d9..3230e3676 100644 --- a/test/livebook/app_test.exs +++ b/test/livebook/app_test.exs @@ -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} diff --git a/test/livebook_web/live/home_live_test.exs b/test/livebook_web/live/home_live_test.exs index f27d777d1..7f9e28844 100644 --- a/test/livebook_web/live/home_live_test.exs +++ b/test/livebook_web/live/home_live_test.exs @@ -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