diff --git a/tests/test_session_copy_link_action.py b/tests/test_session_copy_link_action.py index 5d12d2dac..7dd1d29b7 100644 --- a/tests/test_session_copy_link_action.py +++ b/tests/test_session_copy_link_action.py @@ -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():