feat(08-05-business-detail-routing): 完成采购与资产独立路由

这个提交包含在:
2026-08-07 11:00:56 +08:00
父节点 969b426e64
当前提交 1118bfadd7
共修改 24 个文件,包含 891 行新增和 196 行删除
+2 -2
查看文件
@@ -42,8 +42,7 @@ test("E2E 采购主链路:员工提单→经理审批→财务归档", async (
data: { purchaseRequest: { id: string } };
};
const purchaseRequestId = createPayload.data.purchaseRequest.id;
await page.goto(`/purchase-requests?id=${purchaseRequestId}`);
await expect(page).toHaveURL(new RegExp(`id=${purchaseRequestId}`));
await expect(page).toHaveURL(new RegExp(`/purchase-requests/${purchaseRequestId}$`));
await expect(page.getByTestId("purchase-title")).toBeVisible();
await page.getByTestId("purchase-title").fill(title);
@@ -107,6 +106,7 @@ test("E2E 采购主链路:员工提单→经理审批→财务归档", async (
const purchaseRow = page.getByRole("row").filter({ hasText: requestNo }).first();
await expect(purchaseRow).toBeVisible({ timeout: 30_000 });
await purchaseRow.getByTestId("purchase-row-open").click();
await expect(page).toHaveURL(new RegExp(`/purchase-requests/${purchaseRequestId}$`));
await expect(page.getByTestId("purchase-archive-po-no")).toBeVisible();
await expect(page.getByTestId("purchase-status-hint")).toContainText("已通过", { timeout: 30_000 });