Polish operator messenger layout

This commit is contained in:
Yera All
2026-04-17 00:14:41 +05:00
parent aa6f838061
commit 8ca5f23e93
3 changed files with 36 additions and 7 deletions
+10 -3
View File
@@ -240,6 +240,7 @@ def test_operator_ui_contains_telegram_workspace_page():
def test_operator_ui_contains_unified_messenger_mvp():
app_js = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "app.js").read_text(encoding="utf-8")
index_html = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "index.html").read_text(encoding="utf-8")
styles_css = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "styles.css").read_text(encoding="utf-8")
assert 'data-operator-view-link="messages"' in index_html
assert 'href="#messages"' in index_html
assert 'id="messagesView"' in index_html
@@ -266,6 +267,11 @@ def test_operator_ui_contains_unified_messenger_mvp():
assert "integrations/telegram/threads/${encodeURIComponent(conversation.thread_id)}/close" in app_js
assert "setInterval(() => {" in app_js
assert "}, 5000);" in app_js
assert "[hidden] {" in styles_css
assert "display: none !important;" in styles_css
assert ".telegram-composer-shell textarea {" in styles_css
assert ".messenger-composer-shell textarea {" in styles_css
assert "align-content: start;" in styles_css
def test_operator_ui_contains_live_call_control_block():
@@ -388,14 +394,15 @@ def test_operator_ui_surfaces_voice_name_state_across_call_views():
assert ".micro-badge.name-confirmed {" in styles_css
assert ".micro-badge.name-followup {" in styles_css
assert ".micro-badge.name-missing {" in styles_css
assert "/operator/assets/styles.css?v=track24-messenger-mvp1" in index_html
assert "/operator/assets/app.js?v=track43-messenger-mvp1" in index_html
assert "/operator/assets/styles.css?v=track25-messenger-polish1" in index_html
assert "/operator/assets/app.js?v=track44-messenger-polish1" in index_html
def test_operator_ui_hides_whatsapp_behind_feature_flag():
app_js = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "app.js").read_text(encoding="utf-8")
index_html = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "index.html").read_text(encoding="utf-8")
assert 'data-operator-view-link="whatsapp" data-feature="whatsapp"' in index_html
assert 'data-debug-channel="whatsapp"' in index_html
assert 'data-operator-view-link="whatsapp"' not in index_html
assert 'data-feature-option="whatsapp"' in index_html
assert 'data-operator-view="whatsapp" data-feature="whatsapp" hidden' in index_html
assert "function loadOperatorConfig()" in app_js