修复 R7E 真机反馈回流与移动入口 WF8-11A R7E-16A R7E-16B BIZ8-12A

这个提交包含在:
2026-05-14 21:53:20 +08:00
父节点 45900e0673
当前提交 5491e922e6
共修改 26 个文件,包含 281 行新增和 56 行删除
@@ -542,6 +542,7 @@ async function mockApis(page: Page, role: RolePreset, notifications: MockNotific
pendingBatchCount: 2,
failedItemCount: 1,
riskCount: 3,
paymentBatchEnabled: false,
href: "/ap-operations",
}
: null,
@@ -765,11 +766,16 @@ async function expectNoMobileShellRegression(page: Page) {
scrollWidth: Math.max(document.documentElement.scrollWidth, document.body?.scrollWidth ?? 0),
visibleTables: Array.from(document.querySelectorAll("table")).filter(isVisible).length,
pcShellGridCount: document.querySelectorAll(".page-shell-grid").length,
clippedStatusSlots: Array.from(document.querySelectorAll<HTMLElement>(".mobile-status-slot"))
.filter(isVisible)
.filter((slot) => slot.scrollWidth > slot.clientWidth + 1)
.map((slot) => slot.innerText.trim()),
};
});
expect(metrics.scrollWidth).toBeLessThanOrEqual(metrics.width + 2);
expect(metrics.visibleTables).toBe(0);
expect(metrics.pcShellGridCount).toBe(0);
expect(metrics.clippedStatusSlots).toEqual([]);
}
async function expectActionTileGapStable(page: Page) {
@@ -1038,10 +1044,13 @@ test.describe("MIF7 移动信息架构整改", () => {
await loginForMobile(financeMobile.page, "finance");
await financeMobile.page.goto("/mobile");
await expect(financeMobile.page.getByTestId("mobile-finance-summary")).toBeVisible();
await expect(financeMobile.page.getByTestId("mobile-finance-summary")).toContainText("待付款");
await expect(financeMobile.page.getByTestId("mobile-finance-summary")).toContainText("台账/导出");
await expect(financeMobile.page.getByTestId("mobile-finance-summary")).toContainText("付款批次未启用");
await expect(financeMobile.page.getByTestId("mobile-finance-disabled-state")).toBeVisible();
await expectNoMobileShellRegression(financeMobile.page);
await financeMobile.page.screenshot({ path: screenshotPath("home-finance-summary"), fullPage: true });
await financeMobile.page.goto("/mobile/me");
await expect(financeMobile.page.getByRole("link", { name: /财务/ })).toBeVisible();
await expectNoMobileShellRegression(financeMobile.page);
} finally {
await financeMobile.context.close();
}
@@ -1052,6 +1061,8 @@ test.describe("MIF7 移动信息架构整改", () => {
await loginForMobile(adminMobile.page, "admin");
await adminMobile.page.goto("/mobile");
await expect(adminMobile.page.getByTestId("mobile-finance-summary")).toHaveCount(0);
await adminMobile.page.goto("/mobile/me");
await expect(adminMobile.page.getByRole("link", { name: /财务/ })).toHaveCount(0);
} finally {
await adminMobile.context.close();
}