Fix race condition in notebook import test

This commit is contained in:
Jonatan Kłosko 2022-02-02 14:04:45 +01:00
parent 9f5e0b6983
commit 5538e2e8c0

View file

@ -230,7 +230,7 @@ defmodule LivebookWeb.HomeLiveTest do
|> element("form", "Import")
|> render_submit(%{data: %{content: notebook_content}})
assert_receive {:session_created, %{id: id}}
assert_receive {:session_created, %{id: id, notebook_name: "My notebook"}}
{:ok, view, _} = live(conn, "/sessions/#{id}")
assert render(view) =~ "My notebook"