conversation-session-task-row-hover-details.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-task-row-hover-details",
  4. "spec": "./test/e2e/conversation-session/task-management/conversation-session-task-row-hover-details.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "tsl43-title",
  8. "description": "E2E_TSL43_HOVER_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_TSL43_HOVER_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_TSL43_HOVER_SEED"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": { "content-type": "application/json; charset=utf-8" },
  23. "body": "{\"id\":\"tsl43-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"TSL43 Hover Card\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}"
  24. }
  25. },
  26. {
  27. "id": "tsl43-seed",
  28. "description": "TSL43 会话行悬停卡片:首轮固定回复,建立可悬停的 session。",
  29. "metadata": {
  30. "kind": "main",
  31. "timingPolicy": "fast-text",
  32. "source": "synthetic",
  33. "syntheticReason": "悬停卡片只需一个已存在 session;首轮文案固定。"
  34. },
  35. "maxMatches": 1,
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "lastUserMessageIncludes": ["E2E_TSL43_HOVER_SEED"],
  40. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  41. },
  42. "response": {
  43. "statusCode": 200,
  44. "text": {
  45. "id": "tsl43-seed",
  46. "inputTokens": 80,
  47. "outputTokens": 8,
  48. "text": "TSL43_HOVER_SEED_OK"
  49. }
  50. }
  51. }
  52. ]
  53. }