conversation-session-gen-ui-tweaks.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-gen-ui-tweaks",
  4. "spec": "./test/e2e/conversation-session/sharing/conversation-session-gen-ui-tweaks.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "gen-ui-tweaks-title",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "固定标题旁路回复,避免状态快照用例依赖外部网络。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"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\"}}"
  27. },
  28. "maxMatches": 5
  29. },
  30. {
  31. "id": "gen-ui-tweaks-create",
  32. "description": "GUT create",
  33. "metadata": {
  34. "kind": "main",
  35. "source": "synthetic",
  36. "timingPolicy": "fast-text",
  37. "syntheticReason": "固定页面引用与回复;滑杆、看原样与提交都由真实 UI 操作驱动,用 provider 请求验证提交内容。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "bodyIncludes": ["E2E_GEN_UI_TWEAKS_CREATE"],
  44. "bodyExcludes": [
  45. "Generate a concise title",
  46. "CRITICAL: Respond with TEXT ONLY",
  47. "with these design settings"
  48. ]
  49. },
  50. "response": {
  51. "statusCode": 200,
  52. "text": {
  53. "id": "gen-ui-tweaks-create",
  54. "inputTokens": 80,
  55. "outputTokens": 20,
  56. "text": "::visualize{path=\"{{genUiTweaksPath}}\" title=\"Tweak fixture\"}"
  57. }
  58. }
  59. },
  60. {
  61. "id": "gen-ui-tweaks-submit",
  62. "description": "GUT submit",
  63. "metadata": {
  64. "kind": "main",
  65. "source": "synthetic",
  66. "timingPolicy": "fast-text",
  67. "syntheticReason": "固定页面引用与回复;滑杆、看原样与提交都由真实 UI 操作驱动,用 provider 请求验证提交内容。"
  68. },
  69. "maxMatches": 1,
  70. "match": {
  71. "method": "POST",
  72. "pathIncludes": "/messages",
  73. "bodyIncludes": ["with these design settings"],
  74. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  75. },
  76. "response": {
  77. "statusCode": 200,
  78. "text": {
  79. "id": "gen-ui-tweaks-submit",
  80. "inputTokens": 80,
  81. "outputTokens": 20,
  82. "text": "GEN_UI_TWEAK_SUBMIT_OK"
  83. }
  84. }
  85. }
  86. ]
  87. }