mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-10 22:23:32 +08:00
Improve file entry access test
This commit is contained in:
parent
8ea8e8644e
commit
b704ab6d31
1 changed files with 4 additions and 0 deletions
|
|
@ -2468,6 +2468,8 @@ defmodule LivebookWeb.SessionLiveTest do
|
||||||
|
|
||||||
{:ok, session} = Sessions.create_session(notebook: notebook)
|
{:ok, session} = Sessions.create_session(notebook: notebook)
|
||||||
|
|
||||||
|
Session.subscribe(session.id)
|
||||||
|
|
||||||
{:ok, view, _} = live(conn, ~p"/sessions/#{session.id}")
|
{:ok, view, _} = live(conn, ~p"/sessions/#{session.id}")
|
||||||
|
|
||||||
assert view
|
assert view
|
||||||
|
|
@ -2480,6 +2482,8 @@ defmodule LivebookWeb.SessionLiveTest do
|
||||||
|
|
||||||
render_confirm(view)
|
render_confirm(view)
|
||||||
|
|
||||||
|
assert_receive {:operation, {:allow_file_entry, _client_id, "document.pdf"}}
|
||||||
|
|
||||||
refute view
|
refute view
|
||||||
|> element(~s/[data-el-files-list]/)
|
|> element(~s/[data-el-files-list]/)
|
||||||
|> render() =~ "Click to review access"
|
|> render() =~ "Click to review access"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue