统一业务台账首屏设计(05-30-unified-page-design-review)

这个提交包含在:
2026-05-30 19:54:22 +08:00
父节点 8423ca63b5
当前提交 d5ef8189f1
共修改 15 个文件,包含 121 行新增和 446 行删除
@@ -1001,7 +1001,7 @@ async function capture(page: Page, name: string) {
const pages = [
{ path: "/payment-batches", summary: "payment-batches-summary", proof: "text=批次列表", screenshot: "01-payment-batches" },
{ path: "/ap-operations", summary: "ap-operations-summary", proof: "text=异常付款", screenshot: "02-ap-operations" },
{ path: "/ap-operations", proof: "text=异常付款", screenshot: "02-ap-operations", expectStatusStrip: false },
{ path: "/invoice-pool", summary: "invoice-pool-summary", proof: "data-testid=invoice-pool-table", screenshot: "03-invoice-pool" },
{ path: "/system/approval-rules", summary: "approval-rules-summary", proof: "data-testid=approval-rules-table", screenshot: "04-approval-rules" },
{ path: "/people", summary: "people-summary", proof: "data-testid=people-table", screenshot: "05-people" },
@@ -1023,9 +1023,13 @@ test("PC 财务与管理页 Wave4-5 视觉冒烟", async ({ page }) => {
for (const target of pages) {
await page.goto(target.path);
await expect(page.getByTestId(target.summary)).toBeVisible();
if ("summary" in target) {
await expect(page.getByTestId(target.summary)).toBeVisible();
}
await expect(page.locator(target.proof).first()).toBeVisible();
await expect(page.locator(".finance-status-strip").first()).toBeVisible();
if (!("expectStatusStrip" in target) || target.expectStatusStrip !== false) {
await expect(page.locator(".finance-status-strip").first()).toBeVisible();
}
await capture(page, target.screenshot);
}
});