Add customer profile shortcuts

This commit is contained in:
Yera All
2026-04-04 03:56:18 +05:00
parent ed76f89c9a
commit 14da622d36
3 changed files with 138 additions and 8 deletions
+14
View File
@@ -169,6 +169,20 @@ def test_operator_ui_loads_backend_customer_history_for_profile():
assert "ensureCustomerHistoryLoaded(customer.customer_id).catch(() => {});" in app_js
def test_operator_ui_customer_profile_supports_case_and_call_shortcuts():
app_js = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "app.js").read_text(encoding="utf-8")
styles_css = (Path(__file__).resolve().parents[1] / "ui" / "operator" / "styles.css").read_text(encoding="utf-8")
assert "function customerHistoryEventActions(event, context = {})" in app_js
assert "function renderCustomerHistoryActions(event, context = {})" in app_js
assert 'data-customer-action="interaction"' in app_js
assert 'data-customer-action="call"' in app_js
assert "Открыть кейс" in app_js
assert "Открыть звонок" in app_js
assert "focusLiveCall(callId);" in app_js
assert ".customer-history-actions {" in styles_css
assert ".customer-history-link {" in styles_css
def test_operator_ui_contains_leads_table_front():
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")