重构移动端轻动作页面(05-30-mobile-light-action-surfaces)

这个提交包含在:
2026-05-30 13:52:20 +08:00
父节点 fe0df2397c
当前提交 695f5c2c75
共修改 8 个文件,包含 138 行新增和 308 行删除
@@ -36,7 +36,7 @@ const MOBILE_PAGES = [
{ key: "profile", path: "/mobile/profile", marker: "mobile-profile-page", deep: false },
{ key: "notifications", path: "/mobile/notifications", marker: "mobile-notifications-page", deep: false },
{ key: "capture", path: "/mobile/capture", marker: "mobile-capture-file", deep: false },
{ key: "leave", path: "/mobile/leave?view=form", marker: "mobile-leave-form", deep: false },
{ key: "leave", path: "/mobile/leave", marker: "mobile-leave-records", deep: false },
{ key: "asset-scan", path: "/mobile/assets/scan", marker: "barcode-scanner-panel", deep: false },
] as const;
@@ -626,6 +626,13 @@ test.describe("MUD6 专用移动页面统一设计", () => {
for (const mobilePage of MOBILE_PAGES) {
await page.goto(mobilePage.path);
await expect(page.getByTestId(mobilePage.marker)).toBeVisible();
if (mobilePage.key === "leave") {
await expect(page.getByTestId("mobile-leave-form")).toHaveCount(0);
await expect(page.getByText("企业微信主办")).toBeVisible();
}
if (mobilePage.key === "approvals") {
await expect(page.getByText("批量")).toHaveCount(0);
}
await expectUnifiedMobilePage(page, `${device.label} ${mobilePage.key}`, `${device.key}-${mobilePage.key}`, {
deep: mobilePage.deep,
});