conversation-session-fork-side-pane-empty-state.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-fork-side-pane-empty-state",
  4. "spec": "./test/e2e/conversation-session/conversation-session-fork-side-pane-empty-state.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "fork-side-pane-empty-state-title",
  8. "description": "SSC22 parent 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不是本 case 的产品语义;固定响应避免严格 case-local replay 依赖共享 fallback。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_SSC_FORK_SIDE_PANE_PARENT"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "statusMessage": "OK",
  26. "headers": {
  27. "content-type": "application/json; charset=utf-8"
  28. },
  29. "body": "{\"id\":\"upstream-e2e-fork-side-pane-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-pro\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Fork Side Pane E2E\\\"}\"}],\"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\"}}"
  30. }
  31. },
  32. {
  33. "id": "fork-side-pane-empty-state-parent-turn",
  34. "description": "SSC22 parent completed assistant,提供稳定 fork target。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "核心断言是 fork task 切换后的 Side Pane 可见性;provider 只需稳定形成 completed assistant。"
  40. },
  41. "maxMatches": 1,
  42. "match": {
  43. "method": "POST",
  44. "pathIncludes": "/messages",
  45. "lastUserMessageIncludes": ["E2E_SSC_FORK_SIDE_PANE_PARENT"],
  46. "bodyExcludes": [
  47. "Generate a concise title",
  48. "CRITICAL: Respond with TEXT ONLY"
  49. ]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "statusMessage": "OK",
  54. "text": {
  55. "id": "upstream-e2e-fork-side-pane-parent",
  56. "inputTokens": 128,
  57. "outputTokens": 12,
  58. "text": "SSC_FORK_SIDE_PANE_REPLY"
  59. }
  60. }
  61. }
  62. ]
  63. }