automationConversationWorkspacePresentation.test.ts 684 B

123456789101112131415161718
  1. import { readFileSync } from "node:fs";
  2. import { describe, expect, it } from "vitest";
  3. const source = readFileSync(
  4. new URL("../src/settings/AutomationEditView.tsx", import.meta.url),
  5. "utf8",
  6. );
  7. describe("AutomationEditView 无项目会话展示契约", () => {
  8. it("保留 conversation 语义并复用会话侧固定菜单项", () => {
  9. expect(source).toContain("workspacePurpose: option.workspacePurpose");
  10. expect(source).toContain("allowConversationWorkspaceSelection");
  11. expect(source).toContain("allowConversationWorkspaceDetach={false}");
  12. expect(source).toContain(
  13. "onSelectConversationWorkspace={handleSelectConversationWorkspace}",
  14. );
  15. });
  16. });