Files
UHD_Media_Tool/apps/web/app/components/agent/quick-goals.test.ts
T
rootandClaude Opus 5.5 9649854ab3 feat(web): live step list, option choice card and inline approval card; drop run mode switch
- session page shows the agent.plan TodoList (drawer: one-line progress); options and approval
  cards sit at their step; composer has a "先看方案再执行" toggle instead of the mode switch
- settings expose option timeout, timeout action and approval validity; quick goals follow glossary

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-28 21:07:01 +08:00

14 lines
593 B
TypeScript

import { describe, expect, it } from "vitest";
import { quickGoalsFor } from "./quick-goals.ts";
describe("抽屉快捷目标", () => {
it("按页面给 3 个相关目标", () => {
expect(quickGoalsFor("/console/library/abc")[0]).toBe("检查这部作品缺什么版本");
expect(quickGoalsFor("/console/sites/hdsky")[0]).toBe("从这个站点找 ");
expect(quickGoalsFor("/console/tasks/t1")[0]).toBe("看看为什么没进展");
for (const p of ["/console", "/console/library", "/console/files", "/nope"]) {
expect(quickGoalsFor(p)).toHaveLength(3);
}
});
});