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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-share-publish-import",
  4. "spec": "./test/e2e/conversation-session/conversation-session-share-publish-import.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-share-local-main",
  8. "description": "Local share publish uses a deterministic completed response.",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  20. "bodyIncludes": ["share-local-ready"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "statusMessage": "OK",
  25. "text": {
  26. "id": "conversation-share-local-main",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "share-local-ready"
  30. }
  31. }
  32. },
  33. {
  34. "id": "conversation-share-local-main-second",
  35. "description": "Second completed turn for share selection (share-local-ready-second).",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  41. },
  42. "maxMatches": 1,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  47. "bodyIncludes": ["share-local-ready-second"]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "statusMessage": "OK",
  52. "text": {
  53. "id": "conversation-share-local-main-second",
  54. "inputTokens": 64,
  55. "outputTokens": 8,
  56. "text": "share-local-ready-second"
  57. }
  58. }
  59. },
  60. {
  61. "id": "conversation-share-local-session-b",
  62. "description": "Session B independent prompt reply (share-session-b-ready).",
  63. "metadata": {
  64. "kind": "main",
  65. "timingPolicy": "fast-text",
  66. "source": "synthetic",
  67. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  68. },
  69. "maxMatches": 1,
  70. "match": {
  71. "method": "POST",
  72. "pathIncludes": "/messages",
  73. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  74. "bodyIncludes": ["share-session-b-ready"]
  75. },
  76. "response": {
  77. "statusCode": 200,
  78. "statusMessage": "OK",
  79. "text": {
  80. "id": "conversation-share-local-session-b",
  81. "inputTokens": 64,
  82. "outputTokens": 8,
  83. "text": "share-session-b-ready"
  84. }
  85. }
  86. },
  87. {
  88. "id": "conversation-share-error-main",
  89. "description": "Share error case returns an unsafe local file URL in a completed assistant response.",
  90. "metadata": {
  91. "kind": "main",
  92. "timingPolicy": "fast-text",
  93. "source": "synthetic",
  94. "syntheticReason": "The case validates actionable share error details, not provider behavior."
  95. },
  96. "maxMatches": 1,
  97. "match": {
  98. "method": "POST",
  99. "pathIncludes": "/messages",
  100. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_ERROR_V1"],
  101. "bodyIncludes": ["file:///workspace/not-shareable.pdf"]
  102. },
  103. "response": {
  104. "statusCode": 200,
  105. "statusMessage": "OK",
  106. "text": {
  107. "id": "conversation-share-error-main",
  108. "inputTokens": 64,
  109. "outputTokens": 16,
  110. "text": "file:///workspace/not-shareable.pdf"
  111. }
  112. }
  113. },
  114. {
  115. "id": "conversation-share-preview-main",
  116. "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.",
  117. "metadata": {
  118. "kind": "main",
  119. "timingPolicy": "fast-text",
  120. "source": "synthetic",
  121. "syntheticReason": "The case verifies share candidate discovery and warning projection."
  122. },
  123. "maxMatches": 1,
  124. "match": {
  125. "method": "POST",
  126. "pathIncludes": "/messages",
  127. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_PREVIEW_V1"],
  128. "bodyIncludes": ["prepared preview-card paths"]
  129. },
  130. "response": {
  131. "statusCode": 200,
  132. "statusMessage": "OK",
  133. "text": {
  134. "id": "conversation-share-preview-main",
  135. "inputTokens": 64,
  136. "outputTokens": 64,
  137. "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"
  138. }
  139. }
  140. }
  141. ]
  142. }