feat(08-05-interaction-pattern-unification): 统一前端交互与反馈模式
这个提交包含在:
@@ -225,10 +225,10 @@ test("R70 自动辅助试运行:员工、经理、管理员路径巡检", asyn
|
||||
}
|
||||
});
|
||||
|
||||
await runStep("manager", "待我处理与快捷审批入口", async () => {
|
||||
await runStep("manager", "待我审批与快捷审批入口", async () => {
|
||||
await logout(page, EMPLOYEE.name);
|
||||
await login(page, MANAGER);
|
||||
await (await openNavLink(page, "待我处理")).click();
|
||||
await (await openNavLink(page, "待我审批")).click();
|
||||
await expect(page.getByTestId(TEST_IDS.workflow.tasksTable)).toBeVisible();
|
||||
if (managerTaskId) {
|
||||
await expect(page.getByTestId(TEST_IDS.workflow.taskRow).filter({ hasText: managerTaskId }).first()).toBeVisible();
|
||||
|
||||
@@ -163,7 +163,7 @@ test("R70 深层自动辅助试运行:周报待办、公告团队状态、真
|
||||
}, { timeout: 30_000 });
|
||||
await page.getByTestId(TEST_IDS.weeklyReport.createTodo).click();
|
||||
await createTodoResponse;
|
||||
await expect(page.getByText("已从周报生成待办")).toBeVisible();
|
||||
await expect(page.getByText("已从周报生成事项")).toBeVisible();
|
||||
|
||||
const submitResponse = page.waitForResponse((response) => {
|
||||
const url = new URL(response.url());
|
||||
@@ -177,7 +177,7 @@ test("R70 深层自动辅助试运行:周报待办、公告团队状态、真
|
||||
const todoRow = page.getByTestId(TEST_IDS.todo.row).filter({ hasText: uniqueToken }).first();
|
||||
await expect(todoRow).toBeVisible({ timeout: 30_000 });
|
||||
await todoRow.getByTestId(TEST_IDS.todo.complete).click();
|
||||
await expect(todoRow).toContainText("done", { timeout: 30_000 });
|
||||
await expect(todoRow).toContainText("已完成", { timeout: 30_000 });
|
||||
return `weekStart=${weekStart}; token=${uniqueToken}`;
|
||||
});
|
||||
|
||||
@@ -209,7 +209,7 @@ test("R70 深层自动辅助试运行:周报待办、公告团队状态、真
|
||||
const url = new URL(response.url());
|
||||
return response.request().method() === "GET" && url.pathname === "/api/search" && response.ok();
|
||||
}, { timeout: 30_000 });
|
||||
await page.getByPlaceholder("搜索人员、项目、合同、公告、资产、请假、报销、周报、待办").fill(String(suffix));
|
||||
await page.getByPlaceholder("搜索人员、项目、合同、公告、资产、请假、报销、周报、事项").fill(String(suffix));
|
||||
await searchResponse;
|
||||
|
||||
const resultButton = page.getByRole("button", { name: new RegExp(announcementTitle) }).first();
|
||||
|
||||
@@ -609,7 +609,7 @@ test(`${trialrunIssueId} 浏览器业务先行试运行:报销、审批、请
|
||||
async function approveTaskViaBrowser(role: LiveSmokeRole, taskId: string, expectedText: RegExp | string) {
|
||||
const user = await loginRole(page, role);
|
||||
try {
|
||||
await (await openNavLink(page, "待我处理")).click();
|
||||
await (await openNavLink(page, "待我审批")).click();
|
||||
await expect(page.getByTestId(TEST_IDS.workflow.tasksTable)).toBeVisible();
|
||||
await page.goto(`/workflow/tasks/${taskId}`);
|
||||
await workflowDetail.assertLoaded();
|
||||
|
||||
在新工单中引用
屏蔽一个用户