feat: extend supply workbench demo and map navigation
This commit is contained in:
@@ -80,4 +80,33 @@ describe("scheduled condition backend boundaries", () => {
|
||||
expect(screen.getByText(/只保存在当前页面/)).toBeVisible();
|
||||
expect(screen.queryByText("系统工单已提交")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders an event-triggered water-quality task as a workflow before opening chat", () => {
|
||||
const onContinueConversation = vi.fn();
|
||||
render(
|
||||
<ConditionDetailPanel
|
||||
condition={{
|
||||
...baseCondition,
|
||||
id: "peripheral-water-quality-order-1",
|
||||
taskId: "water-quality-complaint",
|
||||
dataSource: "mock",
|
||||
sessionId: "agent-session-water-quality",
|
||||
title: "水质投诉调查",
|
||||
status: "running",
|
||||
riskLevel: "attention",
|
||||
scheduledAt: new Date().toISOString(),
|
||||
durationMinutes: 15,
|
||||
evidence: ["来源工单:order-1", "投诉位置:演示小区"]
|
||||
}}
|
||||
dataSource="mock"
|
||||
onContinueConversation={onContinueConversation}
|
||||
/>
|
||||
);
|
||||
|
||||
expect(screen.getByText("演示执行流程 · 水质投诉调查流程")).toBeVisible();
|
||||
expect(screen.getAllByText("校验上游水质监测").at(-1)).toBeVisible();
|
||||
expect(screen.getAllByText("核查二次供水").at(-1)).toBeVisible();
|
||||
fireEvent.click(screen.getByRole("button", { name: "与 Agent 协同" }));
|
||||
expect(onContinueConversation).toHaveBeenCalledOnce();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user