Add customer profile shortcuts
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user