Fix session confirm message

This commit is contained in:
José Valim 2024-04-23 19:46:07 +02:00
parent d58986c5bf
commit 25215b67e3
2 changed files with 4 additions and 2 deletions

View file

@ -281,7 +281,8 @@ defmodule LivebookWeb.Integration.SessionLiveTest do
# to the session, allowing the user to fetches the secret.
render_click(add_secret_button)
assert render(view) =~ "in #{hub_label(team)}. Allow this session to access it?"
assert render(view) =~
"in the #{hub_label(team)} workspace. Allow this notebook to access it?"
view
|> element("#secrets-modal button", "Grant access")

View file

@ -1635,7 +1635,8 @@ defmodule LivebookWeb.SessionLiveTest do
# to the session, allowing the user to fetches the secret.
render_click(add_secret_button)
assert render(view) =~ "in #{hub_label(secret)}. Allow this session to access it?"
assert render(view) =~
"in the #{hub_label(secret)} workspace. Allow this notebook to access it?"
grant_access_button = element(view, "#secrets-modal button", "Grant access")
render_click(grant_access_button)