conversation-session-archived-task-closes-side-pane-tabs.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-archived-task-closes-side-pane-tabs",
  4. "spec": "./test/e2e/conversation-session/task-management/conversation-session-archived-task-closes-side-pane-tabs.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "archived-task-browser-tabs-title",
  8. "description": "待删除任务的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "固定标题用于在 归档管理真实 UI 中定位目标行;标题本身不是产品断言。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_ARCHIVED_TASK_BROWSER_TABS"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\":\"archived-task-browser-tabs-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Archived Task Browser Tabs E2E\\\"}\"}],\"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\"}}"
  26. }
  27. },
  28. {
  29. "id": "archived-task-browser-tabs-turn",
  30. "description": "建立带 Browser tab、可归档的 interactive task。",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "fast-text",
  34. "source": "synthetic",
  35. "syntheticReason": "核心断言是归档任务后关闭其全部 tab;provider 只需稳定提交一个普通任务。"
  36. },
  37. "maxMatches": 2,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_ARCHIVED_TASK_BROWSER_TABS"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "id": "archived-task-browser-tabs-turn",
  48. "inputTokens": 96,
  49. "outputTokens": 12,
  50. "text": "ARCHIVED_TASK_BROWSER_TABS_OK"
  51. }
  52. }
  53. }
  54. ]
  55. }