R7E 真机二次反馈移动修复

引用 R7E-16C BIZ8-12B
这个提交包含在:
2026-05-15 18:24:03 +08:00
父节点 8cd4b92857
当前提交 f945c0bfb0
共修改 10 个文件,包含 197 行新增和 24 行删除
@@ -55,7 +55,7 @@ function buildMe() {
directManagerId: null,
status: "active",
notificationPushEnabled: true,
roleCodes: ["manager"],
roleCodes: ["manager", "finance"],
profileCompleteness: {
hasEmergencyContact: true,
hasBankAccount: true,
@@ -230,6 +230,13 @@ async function mockApis(page: Page, state: ReturnType<typeof buildState>) {
weeklySummary: null,
todoSummary: null,
projectSummary: null,
financeSummary: {
paymentBatchEnabled: false,
href: "/mobile#finance",
pendingBatchCount: 0,
failedItemCount: 0,
riskCount: 0,
},
peopleLifecycle: null,
adoptionSummary: null,
recentActivities: [],
@@ -518,6 +525,7 @@ test.describe("R124 企业微信移动入口矩阵", () => {
await mobile.page.getByTestId("mobile-nav-approvals").click();
await expect(mobile.page).toHaveURL(/\/mobile\/approvals$/);
await expect(mobile.page.getByText("审批").first()).toBeVisible();
await expect(mobile.page.locator(".mobile-status-slot--approval").first()).toContainText("待处理");
await expectMobilePageContract(mobile.page);
await mobile.page.getByTestId("mobile-nav-me").click();
@@ -526,6 +534,14 @@ test.describe("R124 企业微信移动入口矩阵", () => {
await mobile.page.screenshot({ path: screenshotPath("mobile-me") });
await expectMobilePageContract(mobile.page);
await expect(mobile.page.getByRole("link", { name: /财务/ })).toBeVisible();
await mobile.page.getByRole("link", { name: /财务/ }).click();
await expect(mobile.page).toHaveURL(/\/mobile#finance$/);
await expect(mobile.page.getByTestId("mobile-finance-summary")).toBeInViewport();
await expect(mobile.page.getByTestId("mobile-finance-disabled-state")).toBeInViewport();
await expectMobilePageContract(mobile.page);
await mobile.page.goto("/mobile/me");
await mobile.page.getByRole("link", { name: /个人设置/ }).click();
await expect(mobile.page).toHaveURL(/\/mobile\/profile$/);
await expect(mobile.page.getByTestId("mobile-profile-page")).toBeVisible();