修复 R7E 真机反馈回流与移动入口 WF8-11A R7E-16A R7E-16B BIZ8-12A
这个提交包含在:
@@ -454,6 +454,10 @@ async function collectMobileMetrics(page: Page) {
|
||||
scrollWidth: Math.max(document.documentElement.scrollWidth, document.body?.scrollWidth ?? 0),
|
||||
tableCount: 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()),
|
||||
text: document.body?.innerText ?? "",
|
||||
};
|
||||
});
|
||||
@@ -465,6 +469,7 @@ async function expectMobilePageContract(page: Page) {
|
||||
expect(metrics.scrollWidth).toBeLessThanOrEqual(metrics.width + 2);
|
||||
expect(metrics.tableCount).toBe(0);
|
||||
expect(metrics.pcShellGridCount).toBe(0);
|
||||
expect(metrics.clippedStatusSlots).toEqual([]);
|
||||
expect(metrics.text).not.toContain("返回仪表盘");
|
||||
}
|
||||
|
||||
@@ -493,8 +498,14 @@ test.describe("R124 企业微信移动入口矩阵", () => {
|
||||
await expect(mobile.page.getByTestId("mobile-capture-camera-file")).toHaveCount(0);
|
||||
await expect(mobile.page.getByTestId("mobile-capture-image-file")).toHaveCount(0);
|
||||
await expect(mobile.page.getByTestId("mobile-capture-pdf-file")).toBeAttached();
|
||||
await expect(mobile.page.getByTestId("mobile-capture-pdf-file")).toHaveAttribute("accept", "application/pdf");
|
||||
await expect(mobile.page.getByTestId("mobile-capture-pdf-file")).toHaveAttribute("accept", ".pdf,application/pdf");
|
||||
await expect(mobile.page.getByTestId("mobile-capture-pdf-file")).not.toHaveAttribute("capture", /.+/);
|
||||
await mobile.page.getByTestId("mobile-capture-pdf-file").setInputFiles({
|
||||
name: "camera.jpg",
|
||||
mimeType: "image/jpeg",
|
||||
buffer: Buffer.from("r124-image"),
|
||||
});
|
||||
await expect(mobile.page.getByRole("main").getByText(/发票上传仅支持 PDF,已忽略 camera.jpg/)).toBeVisible();
|
||||
await mobile.page.getByTestId("mobile-capture-pdf-file").setInputFiles({
|
||||
name: "r124-invoice.pdf",
|
||||
mimeType: "application/pdf",
|
||||
|
||||
在新工单中引用
屏蔽一个用户