conversation-session-ssh-remote-settings-overlay-sidebar-status.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-settings-overlay-sidebar-status",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ssh-remote-settings-overlay-sidebar-status.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-settings-overlay-title",
  8. "description": "SSH settings overlay 标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题内容不属于侧栏状态断言,只需稳定 task row。"
  14. },
  15. "maxMatches": 2,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  24. "body": "data: {\"id\":\"ssh-settings-overlay-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH settings overlay\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-settings-overlay-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  25. }
  26. },
  27. {
  28. "id": "ssh-settings-overlay-a-first",
  29. "description": "workspace A 首发响应。",
  30. "metadata": { "kind": "main", "timingPolicy": "slow-stream", "source": "synthetic", "syntheticReason": "稳定创建远程 task 并让首发回到 idle。" },
  31. "match": { "method": "POST", "pathIncludes": "/chat/completions", "lastUserMessageIncludes": ["E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR_A_FIRST_PROMPT"], "bodyExcludes": ["Generate a concise title"] },
  32. "response": { "statusCode": 200, "delayMs": 1200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"ssh-settings-overlay-a-first\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_SETTINGS_OVERLAY_SIDEBAR_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-settings-overlay-a-first\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n" }
  33. },
  34. {
  35. "id": "ssh-settings-overlay-a-follow",
  36. "description": "workspace A 续发响应;延迟 15s 给用例留出「运行中打开并关闭设置页」的窗口。",
  37. "metadata": { "kind": "main", "timingPolicy": "slow-stream", "source": "synthetic", "syntheticReason": "复现用户在任务运行中开关设置页,随后任务完成的时序。" },
  38. "match": { "method": "POST", "pathIncludes": "/chat/completions", "lastUserMessageIncludes": ["E2E_SSH_P0_SETTINGS_OVERLAY_SIDEBAR_A_FOLLOW_PROMPT"], "bodyExcludes": ["Generate a concise title"] },
  39. "response": { "statusCode": 200, "delayMs": 15000, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "data: {\"id\":\"ssh-settings-overlay-a-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"SSH_P0_SETTINGS_OVERLAY_SIDEBAR_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"ssh-settings-overlay-a-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n" }
  40. }
  41. ]
  42. }