调整待处理页任务优先体验(portal-task-first-redesign)
这个提交包含在:
@@ -34,6 +34,8 @@ const mockMe = {
|
||||
},
|
||||
};
|
||||
|
||||
const pendingTaskCreatedAt = new Date().toISOString();
|
||||
|
||||
const pendingTask = {
|
||||
id: "task-confirm-1",
|
||||
instanceId: "instance-confirm-1",
|
||||
@@ -43,7 +45,7 @@ const pendingTask = {
|
||||
assigneeRole: "manager",
|
||||
status: "pending",
|
||||
outcome: null,
|
||||
createdAt: "2026-05-15T09:00:00.000Z",
|
||||
createdAt: pendingTaskCreatedAt,
|
||||
completedAt: null,
|
||||
workflowInstance: {
|
||||
entityType: "leave",
|
||||
@@ -81,7 +83,7 @@ const pendingTaskDetail = {
|
||||
currentStatus: "reviewing",
|
||||
currentStepId: "manager-review",
|
||||
contextData: { standardViolations: [] },
|
||||
startedAt: "2026-05-15T09:00:00.000Z",
|
||||
startedAt: pendingTaskCreatedAt,
|
||||
completedAt: null,
|
||||
},
|
||||
reimbursement: null,
|
||||
|
||||
@@ -84,7 +84,6 @@ test("E2E 审批列表快捷通过:经理可在待办列表行内直接通过
|
||||
await login(page, MANAGER);
|
||||
await (await openNavLink(page, "待我处理")).click();
|
||||
await expect(page.getByTestId(TEST_IDS.workflow.tasksTable)).toBeVisible();
|
||||
await page.getByTestId("workflow-tasks-entity-filter").selectOption("leave");
|
||||
|
||||
const taskRows = page.locator(
|
||||
`[data-testid="${TEST_IDS.workflow.taskRow}"]:has(a[href="/workflow/tasks/${submitResult.currentTaskId}"])`,
|
||||
|
||||
在新工单中引用
屏蔽一个用户