Add voice name flow controls and analytics
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user