conversation-session-tool-detail-toggle-stability.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-tool-detail-toggle-stability",
  4. "spec": "./test/e2e/conversation-session/tools/conversation-session-tool-detail-toggle-stability.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-tool-detail-toggle-read-call",
  8. "description": "P08: emit two consecutive Read tool uses in a summary group.",
  9. "metadata": {
  10. "kind": "main",
  11. "source": "synthetic",
  12. "timingPolicy": "tool-use",
  13. "syntheticReason": "固定触发两次连续 Read,验证跨类型摘要组开合和真实 Read 行,不生成 Explore 工具身份。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "lastUserMessageIncludes": ["E2E_TOOL_DETAIL_TOGGLE_READ"],
  19. "bodyIncludes": ["E2E_TOOL_DETAIL_TOGGLE_READ"],
  20. "bodyExcludes": [
  21. "Generate a concise title",
  22. "toolu_e2e_tool_detail_toggle_read_1",
  23. "toolu_e2e_tool_detail_toggle_read_2"
  24. ]
  25. },
  26. "response": {
  27. "statusCode": 200,
  28. "toolUses": [
  29. {
  30. "id": "toolu_e2e_tool_detail_toggle_read_1",
  31. "name": "Read",
  32. "input": {
  33. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-detail-toggle-stability/read-fixture-a.txt"
  34. }
  35. },
  36. {
  37. "id": "toolu_e2e_tool_detail_toggle_read_2",
  38. "name": "Read",
  39. "input": {
  40. "file_path": "{{e2eRuntimeRoot}}/conversation-session-tool-detail-toggle-stability/read-fixture-b.txt"
  41. }
  42. }
  43. ]
  44. }
  45. },
  46. {
  47. "id": "upstream-tool-detail-toggle-final",
  48. "description": "P08: finish the turn after both Read results.",
  49. "metadata": {
  50. "kind": "main",
  51. "source": "synthetic",
  52. "timingPolicy": "fast-text",
  53. "syntheticReason": "工具结果回填后稳定结束当前轮,使测试只观测已完成详情的展开和收起几何。"
  54. },
  55. "match": {
  56. "method": "POST",
  57. "pathIncludes": "/messages",
  58. "bodyIncludes": [
  59. "E2E_TOOL_DETAIL_TOGGLE_READ",
  60. "toolu_e2e_tool_detail_toggle_read_1",
  61. "toolu_e2e_tool_detail_toggle_read_2"
  62. ],
  63. "bodyExcludes": ["Generate a concise title"]
  64. },
  65. "response": {
  66. "statusCode": 200,
  67. "text": "upstream-e2e-ok"
  68. }
  69. }
  70. ]
  71. }