mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-05 19:25:28 +08:00
Fix rendering timeout in learn page test (#2297)
This commit is contained in:
parent
809eb925de
commit
f1ce3c3cc6
1 changed files with 7 additions and 2 deletions
|
@ -13,8 +13,13 @@ defmodule LivebookWeb.LearnLiveTest do
|
|||
|
||||
assert to =~ "/sessions/"
|
||||
|
||||
{:ok, view, _} = live(conn, to)
|
||||
assert render(view) =~ "Welcome to Livebook"
|
||||
# Note that this LV page is huge and the simulated rendering in
|
||||
# LV tests is not heavily optimized. This LV receives events from
|
||||
# concurrent tests (such as hub creation) and rendering is a big
|
||||
# bottleneck, to the point where calling render(view) times out.
|
||||
# That's why we only assert on the dead render HTML.
|
||||
{:ok, _view, html} = live(conn, to)
|
||||
assert html =~ "Welcome to Livebook"
|
||||
|
||||
close_session_by_path(to)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue