conversation-session-spreadsheet-paste.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-spreadsheet-paste",
  4. "spec": "./test/e2e/conversation-session/attachments/conversation-session-spreadsheet-paste.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-spreadsheet-paste-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  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\\\":\\\"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\"}}"
  27. }
  28. },
  29. {
  30. "id": "spreadsheet-paste-text-priority",
  31. "description": "T11:Excel HTML + TSV + 合成 PNG paste 后 provider 只收到表格文本。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "lastUserMessage matcher 证明 TSV 进入 provider;bodyExcludes 合成 PNG 文件名证明没有误走附件链路。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_SPREADSHEET_PASTE", "Alice\t42"],
  43. "bodyExcludes": [
  44. "e2e-spreadsheet-synthetic.png",
  45. "Generate a concise title",
  46. "CRITICAL: Respond with TEXT ONLY"
  47. ]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "text": {
  52. "id": "spreadsheet-paste-text-priority",
  53. "inputTokens": 80,
  54. "outputTokens": 8,
  55. "text": "SPREADSHEET_PASTE_OK"
  56. }
  57. }
  58. }
  59. ]
  60. }