conversation-session-share-publish-import.json 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-share-publish-import",
  4. "spec": "./test/e2e/conversation-session/sharing/conversation-session-share-publish-import.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-share-session-b-title",
  8. "description": "为 Session B 返回独立标题,验证分享草稿不会串用 A 的标题。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "SHARE27 验证 A/B 分享状态隔离,需要不同固定标题;通用标题会使数据前置条件失效。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_CONVERSATION_SHARE_LOCAL_V1", "session-b"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"session-b\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "conversation-session-share-publish-import-title-sidecar",
  31. "description": "本例标题旁路响应。",
  32. "metadata": {
  33. "kind": "common",
  34. "source": "synthetic",
  35. "timingPolicy": "fast-text",
  36. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "bodyIncludes": ["Generate a concise title"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "statusMessage": "OK",
  46. "headers": {
  47. "content-type": "application/json; charset=utf-8"
  48. },
  49. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  50. }
  51. },
  52. {
  53. "id": "conversation-share-local-main",
  54. "description": "Local share publish uses a deterministic completed response.",
  55. "metadata": {
  56. "kind": "main",
  57. "timingPolicy": "fast-text",
  58. "source": "synthetic",
  59. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  60. },
  61. "maxMatches": 1,
  62. "match": {
  63. "method": "POST",
  64. "pathIncludes": "/messages",
  65. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  66. "bodyIncludes": ["share-local-ready"]
  67. },
  68. "response": {
  69. "statusCode": 200,
  70. "statusMessage": "OK",
  71. "text": {
  72. "id": "conversation-share-local-main",
  73. "inputTokens": 64,
  74. "outputTokens": 8,
  75. "text": "share-local-ready"
  76. }
  77. }
  78. },
  79. {
  80. "id": "conversation-share-local-main-second",
  81. "description": "Second completed turn for share selection (share-local-ready-second).",
  82. "metadata": {
  83. "kind": "main",
  84. "timingPolicy": "fast-text",
  85. "source": "synthetic",
  86. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  87. },
  88. "maxMatches": 1,
  89. "match": {
  90. "method": "POST",
  91. "pathIncludes": "/messages",
  92. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  93. "bodyIncludes": ["share-local-ready-second"]
  94. },
  95. "response": {
  96. "statusCode": 200,
  97. "statusMessage": "OK",
  98. "text": {
  99. "id": "conversation-share-local-main-second",
  100. "inputTokens": 64,
  101. "outputTokens": 8,
  102. "text": "share-local-ready-second"
  103. }
  104. }
  105. },
  106. {
  107. "id": "conversation-share-local-session-b",
  108. "description": "Session B independent prompt reply (share-session-b-ready).",
  109. "metadata": {
  110. "kind": "main",
  111. "timingPolicy": "fast-text",
  112. "source": "synthetic",
  113. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  114. },
  115. "maxMatches": 1,
  116. "match": {
  117. "method": "POST",
  118. "pathIncludes": "/messages",
  119. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  120. "bodyIncludes": ["share-session-b-ready"]
  121. },
  122. "response": {
  123. "statusCode": 200,
  124. "statusMessage": "OK",
  125. "text": {
  126. "id": "conversation-share-local-session-b",
  127. "inputTokens": 64,
  128. "outputTokens": 8,
  129. "text": "share-session-b-ready"
  130. }
  131. }
  132. },
  133. {
  134. "id": "conversation-share-uri-file-main",
  135. "description": "Share case returns local file URI text in a completed assistant response.",
  136. "metadata": {
  137. "kind": "main",
  138. "timingPolicy": "fast-text",
  139. "source": "synthetic",
  140. "syntheticReason": "The case verifies URI text passes share preflight."
  141. },
  142. "maxMatches": 1,
  143. "match": {
  144. "method": "POST",
  145. "pathIncludes": "/messages",
  146. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"],
  147. "bodyIncludes": ["file:///workspace/report.pdf"]
  148. },
  149. "response": {
  150. "statusCode": 200,
  151. "statusMessage": "OK",
  152. "text": {
  153. "id": "conversation-share-uri-file-main",
  154. "inputTokens": 64,
  155. "outputTokens": 16,
  156. "text": "file:///workspace/report.pdf"
  157. }
  158. }
  159. },
  160. {
  161. "id": "conversation-share-uri-data-main",
  162. "description": "Share case returns data URI text in a completed assistant response.",
  163. "metadata": {
  164. "kind": "main",
  165. "timingPolicy": "fast-text",
  166. "source": "synthetic",
  167. "syntheticReason": "The case verifies URI text passes share preflight."
  168. },
  169. "maxMatches": 1,
  170. "match": {
  171. "method": "POST",
  172. "pathIncludes": "/messages",
  173. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"],
  174. "bodyIncludes": ["data:text/plain;base64,YQ=="]
  175. },
  176. "response": {
  177. "statusCode": 200,
  178. "statusMessage": "OK",
  179. "text": {
  180. "id": "conversation-share-uri-data-main",
  181. "inputTokens": 64,
  182. "outputTokens": 16,
  183. "text": "data:text/plain;base64,YQ=="
  184. }
  185. }
  186. },
  187. {
  188. "id": "conversation-share-preview-main",
  189. "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.",
  190. "metadata": {
  191. "kind": "main",
  192. "timingPolicy": "fast-text",
  193. "source": "synthetic",
  194. "syntheticReason": "The case verifies share candidate discovery and warning projection."
  195. },
  196. "maxMatches": 1,
  197. "match": {
  198. "method": "POST",
  199. "pathIncludes": "/messages",
  200. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_PREVIEW_V1"],
  201. "bodyIncludes": ["prepared preview-card paths"]
  202. },
  203. "response": {
  204. "statusCode": 200,
  205. "statusMessage": "OK",
  206. "text": {
  207. "id": "conversation-share-preview-main",
  208. "inputTokens": 64,
  209. "outputTokens": 64,
  210. "text": "~/Code/vibe/shows/deliver/晨报_2026-09-08_早会版.pdf\n.zcode-e2e/conversation-share-preview/晨报_2026-09-08_早会版.pdf\nbuild_mn/qa/layout-review.md\n.zcode-e2e/conversation-share-preview/condensed.mp4\n.zcode-e2e/conversation-share-preview/纵横四海_电影解说.mp4\n.zcode-e2e/conversation-share-preview/final_subtitled.mp4"
  211. }
  212. }
  213. }
  214. ]
  215. }