统一页面右上角操作区(05-31-unified-page-header-actions)

这个提交包含在:
2026-05-31 16:41:44 +08:00
父节点 b71d23e661
当前提交 dcf34d7ac6
共修改 18 个文件,包含 480 行新增和 183 行删除
@@ -348,6 +348,8 @@ test.describe("R103 cross page UI consistency", () => {
await expect(page.locator("header").filter({ hasText: "业务" }).getByText("采购")).toBeVisible();
await expect(page.getByRole("heading", { name: "采购" })).toBeVisible();
const purchaseHeader = page.locator(".page-header-shell").filter({ hasText: "采购" }).first();
await expect(purchaseHeader.getByRole("button", { name: "筛选" })).toHaveCount(0);
await expect(page.getByTestId("purchase-requests-table")).toBeVisible();
await expect(page.getByTestId("purchase-advanced-filters")).toBeVisible();
await expect(page.getByTestId("purchase-attachment-upload")).toHaveCount(0);
@@ -375,6 +377,9 @@ test.describe("R103 cross page UI consistency", () => {
await page.goto("/invoice-pool");
await expect(page.getByRole("heading", { name: "票据" })).toBeVisible();
const invoiceHeader = page.locator(".page-header-shell").filter({ hasText: "票据" }).first();
await expect(invoiceHeader.getByRole("button", { name: "绑定" })).toHaveCount(0);
await expect(invoiceHeader.getByTestId("invoice-export")).toHaveCount(0);
await expect(page.getByTestId("invoice-detail-panel")).toHaveCount(0);
await page.getByRole("button", { name: "绑定" }).click();
await expect(page.getByTestId("invoice-bind-reimbursement")).toContainText("草稿单 · 2026-05-06");