refactor: 菜单栏角色化降噪(role-based-navigation-simplification)
这个提交包含在:
@@ -1,7 +1,6 @@
|
||||
import { test, expect } from "./helpers/fixtures";
|
||||
|
||||
import { EMPLOYEE, login, logout } from "./helpers/auth";
|
||||
import { openNavLink } from "./helpers/navigation";
|
||||
import { TEST_IDS } from "./helpers/testIds";
|
||||
|
||||
function formatWeekStart(offsetDays: number) {
|
||||
@@ -53,7 +52,7 @@ test("E2E 周报待办联动:保存 → 生成待办 → 提交 → 完成待
|
||||
await expect(page.getByText("周报已提交")).toBeVisible();
|
||||
await expect(page.getByText("已提交", { exact: true })).toBeVisible();
|
||||
|
||||
await (await openNavLink(page, "待办")).click();
|
||||
await page.goto("/todos");
|
||||
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();
|
||||
|
||||
在新工单中引用
屏蔽一个用户