Add voice name flow controls and analytics

This commit is contained in:
Yera All
2026-04-05 03:26:18 +05:00
parent d15fcf7129
commit d959c2b2f0
31 changed files with 6410 additions and 152 deletions
+17
View File
@@ -54,6 +54,23 @@ def test_demo_seed_plan_contains_demo_keyword():
assert plan["ivr_kz_menu_prompt"] == "Сату бөлімі үшін 1 басыңыз. Қолдау қызметі үшін 2 басыңыз."
def test_demo_ivr_flow_routes_language_to_voice_start_queues():
plan = demo_seed.build_seed_plan("TAG123")
flow = demo_seed._demo_ivr_flow_document(
plan,
voice_start_kz_queue_id="que_kz",
voice_start_ru_queue_id="que_ru",
)
root = flow["nodes"][0]
assert root["options"] == [
{"digit": "1", "target_node_id": "voice_start_kz"},
{"digit": "2", "target_node_id": "voice_start_ru"},
]
assert flow["nodes"][1]["resolved_queue_code"] == "voice_start_ru"
assert flow["nodes"][2]["resolved_queue_code"] == "voice_start_kz"
def test_prepare_demo_script_resets_local_data_and_prints_backstage_hints():
script = (Path(__file__).resolve().parents[1] / "scripts" / "prepare_demo.ps1").read_text(encoding="utf-8")