test: update read-only action-menu shape assertion for the appended Export item

This commit is contained in:
nesquena-hermes
2026-07-02 03:34:36 +00:00
parent f50b1d84e1
commit 21f321c06c
+4 -1
View File
@@ -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():