conversation-session-v4-composer-toolbar.json 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-composer-toolbar",
  4. "spec": "./test/e2e/conversation-session/composer/conversation-session-v4-composer-toolbar.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-composer-toolbar-title",
  8. "description": "E2E_V4_COMPOSER_TOOLBAR_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_COMPOSER_TOOLBAR_SEED 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_V4_COMPOSER_TOOLBAR_SEED"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "v4-composer-toolbar-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"V4 Composer Toolbar E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "v4-composer-toolbar-seed",
  32. "description": "M5 composer 工具条门禁:首轮固定回复,建立可切模型/模式的 session(usage 投影随 ModelComplete 写入)。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "工具条切换使用已存在 session;目录 owner、桌面配置 ACK 及手机同 workspace A/B 回归创建额外会话,首轮文案固定。"
  38. },
  39. "maxMatches": 5,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_V4_COMPOSER_TOOLBAR_SEED"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "text": {
  49. "id": "v4-composer-toolbar-seed",
  50. "inputTokens": 80,
  51. "outputTokens": 8,
  52. "text": "V4_COMPOSER_TOOLBAR_SEED_OK"
  53. }
  54. }
  55. },
  56. {
  57. "id": "provider-pending-send",
  58. "description": "Provider 目录与跨会话配置 ACK 挂起后的发送回归",
  59. "metadata": {
  60. "kind": "main",
  61. "timingPolicy": "fast-text",
  62. "source": "synthetic",
  63. "syntheticReason": "固定回复用于确认阻止旧选择提交后可正常发送"
  64. },
  65. "match": {
  66. "method": "POST",
  67. "pathIncludes": "/messages",
  68. "lastUserMessageIncludes": ["E2E_PROVIDER_PENDING_SEND"],
  69. "bodyExcludes": ["Generate a concise title"]
  70. },
  71. "response": {
  72. "statusCode": 200,
  73. "text": {
  74. "id": "provider-pending-send",
  75. "inputTokens": 80,
  76. "outputTokens": 8,
  77. "text": "PROVIDER_PENDING_SEND_OK"
  78. }
  79. }
  80. }
  81. ]
  82. }