| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {
- "version": 1,
- "caseName": "conversation-session-spreadsheet-paste",
- "spec": "./test/e2e/conversation-session/attachments/conversation-session-spreadsheet-paste.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-spreadsheet-paste-title-sidecar",
- "description": "本例标题旁路响应。",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "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\"}}"
- }
- },
- {
- "id": "spreadsheet-paste-text-priority",
- "description": "T11:Excel HTML + TSV + 合成 PNG paste 后 provider 只收到表格文本。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "lastUserMessage matcher 证明 TSV 进入 provider;bodyExcludes 合成 PNG 文件名证明没有误走附件链路。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SPREADSHEET_PASTE", "Alice\t42"],
- "bodyExcludes": [
- "e2e-spreadsheet-synthetic.png",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "spreadsheet-paste-text-priority",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "SPREADSHEET_PASTE_OK"
- }
- }
- }
- ]
- }
|