pluginStoreTryMentionCommit.test.ts 674 B

12345678910111213141516
  1. import { readFileSync } from "node:fs";
  2. import { describe, expect, it } from "vitest";
  3. describe("Plugin Store try mention commit", () => {
  4. it("keeps the hidden Settings workspace from consuming the one-shot prefill", () => {
  5. const shell = readFileSync(
  6. "packages/ui/src/app-shell/WorkspaceShellLayout.tsx",
  7. "utf8",
  8. );
  9. const workbench = readFileSync("packages/ui/src/v4/V4WorkspaceChatArea.tsx", "utf8");
  10. expect(shell).toContain("foregroundEnabled={isWorkspaceVisible}");
  11. expect(workbench).toContain("foregroundEnabled?: boolean");
  12. expect(workbench).toContain("focused={foregroundEnabled && focusedPaneId === leaf.paneId}");
  13. });
  14. });