refactor(workbench): simplify appointment tasks
This commit is contained in:
@@ -167,23 +167,8 @@ test("审批动作展示中文参数和证据,viewer 不可审批,冲突后
|
||||
work_order_type: "general",
|
||||
location: "联调测试点东侧",
|
||||
scenario_code: "APPOINTMENT-TEST-001",
|
||||
subtasks: [{
|
||||
id: "field-service",
|
||||
title: "阀井现场维修",
|
||||
summary: "按预约窗口完成现场维修并回填结果。",
|
||||
status: "pending",
|
||||
scheduled_at: "2026-09-23T10:00:00Z",
|
||||
location: "联调测试点东侧",
|
||||
assignee: "测试班组乙",
|
||||
duration_minutes: 60,
|
||||
reply_window_minutes: 30,
|
||||
stages: [
|
||||
{ id: "dispatch", sequence: 1, title: "派发", status: "pending", owner: "调度岗", time_label: "待安排", description: "确认预约窗口。" },
|
||||
{ id: "execution", sequence: 2, title: "执行", status: "pending", owner: "测试班组乙", time_label: "待安排", description: "完成现场维修。" },
|
||||
{ id: "reply", sequence: 3, title: "复令", status: "pending", owner: "调度岗", time_label: "待安排", description: "核对回执并闭环。" }
|
||||
],
|
||||
reply_requirements: ["回填现场处理结果"]
|
||||
}],
|
||||
feedback_requirements: ["回填现场处理结果"],
|
||||
activity: [],
|
||||
origin: "synthetic",
|
||||
updated_at: "2026-09-23T08:30:00Z"
|
||||
}
|
||||
@@ -282,17 +267,17 @@ test("审批动作展示中文参数和证据,viewer 不可审批,冲突后
|
||||
await expect(conditionPanel.getByRole("button", { name: /定时任务/ })).toContainText("模拟数据");
|
||||
await expect(conditionPanel.getByRole("button", { name: /调查任务/ })).toContainText("后端");
|
||||
await expect(conditionPanel.getByRole("button", { name: /预约任务/ })).toContainText("后端");
|
||||
await expect(conditionPanel.getByRole("button", { name: /预约任务/ })).toContainText("演示");
|
||||
await conditionPanel.getByRole("button", { name: "配置定时流程" }).click();
|
||||
await conditionPanel.getByLabel("定时流程名称").fill("夜间阀门巡检");
|
||||
await conditionPanel.getByLabel("任务说明").fill("每十五分钟检查预约维修涉及的边界阀门。");
|
||||
await conditionPanel.getByRole("button", { name: "创建定时流程" }).click();
|
||||
await expect(conditionPanel.getByText("夜间阀门巡检", { exact: true }).first()).toBeVisible();
|
||||
await conditionPanel.getByRole("button", { name: /预约任务/ }).click();
|
||||
await expect(conditionPanel.getByText("最近工况", { exact: true })).toHaveCount(1);
|
||||
await expect(conditionPanel.getByText("城北阀井预约维修", { exact: true }).first()).toBeVisible();
|
||||
await expect(conditionPanel.getByText(/^演示工单:/).first()).toBeVisible();
|
||||
await conditionPanel.getByText("城北阀井预约维修", { exact: true }).first().click();
|
||||
await expect(conditionPanel.getByText(/阀井现场维修.*待处理/)).toBeVisible();
|
||||
await expect(conditionPanel.getByText("回执要求", { exact: true })).toBeVisible();
|
||||
await expect(conditionPanel.getByText("回填现场处理结果", { exact: true })).toBeVisible();
|
||||
await expect(conditionPanel.getByText("测试班组乙", { exact: true }).first()).toBeVisible();
|
||||
await expect(conditionPanel.getByText(/位置:联调测试点东侧/)).toBeVisible();
|
||||
await expect(conditionPanel.getByText("编辑后的预约维修说明", { exact: true })).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user