mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-20 22:51:07 +00:00
test: update read-only action-menu shape assertion for the appended Export item
This commit is contained in:
@@ -98,7 +98,10 @@ def test_read_only_sessions_can_still_open_actions_for_copy_link():
|
||||
open_menu_block = SESSIONS_JS[start:end]
|
||||
assert "Read-only imported sessions cannot be modified" not in open_menu_block
|
||||
assert "const isReadOnly = _isReadOnlySession(session);" in open_menu_block
|
||||
assert "if(isReadOnly){\n _mountSessionActionMenu(menu, session, anchorEl);\n return;\n }" in open_menu_block
|
||||
# Read-only sessions still get a usable menu: Copy link + Export as HTML
|
||||
# (both non-mutating) are offered, then the menu mounts and returns early
|
||||
# before any mutating action is appended.
|
||||
assert "if(isReadOnly){\n _appendSessionExportHtmlAction(menu, session);\n _mountSessionActionMenu(menu, session, anchorEl);\n return;\n }" in open_menu_block
|
||||
|
||||
|
||||
def test_copy_link_i18n_keys_have_english_and_german_labels():
|
||||
|
||||
Reference in New Issue
Block a user