B1-B8 建立项目级流程与QA门禁

这个提交包含在:
2026-05-09 01:57:05 +08:00
父节点 555e7b7e29
当前提交 485328426a
共修改 29 个文件,包含 1633 行新增和 102 行删除
+4 -3
查看文件
@@ -30,6 +30,7 @@ test("E2E 采购主链路:员工提单→经理审批→财务归档", async (
const title = `Playwright 采购 ${Date.now()}`;
let requestNo = "";
await page.setViewportSize({ width: 1440, height: 960 });
await login(page, EMPLOYEE);
await (await openNavLink(page, "采购申请")).click();
const createResponsePromise = page.waitForResponse(
@@ -51,15 +52,15 @@ test("E2E 采购主链路:员工提单→经理审批→财务归档", async (
await selectFirstBusinessOption(page.getByTestId("purchase-supplier"));
await selectFirstBusinessOption(page.getByTestId("purchase-document-category"));
const itemDescriptionInputs = page.locator('[data-testid^="purchase-item-description-"]');
const itemDescriptionInputs = page.locator('[data-testid^="purchase-item-description-"]:visible');
if (!(await itemDescriptionInputs.first().isVisible().catch(() => false))) {
await page.getByTestId("purchase-add-item").click();
}
await expect(itemDescriptionInputs.first()).toBeVisible({ timeout: 30_000 });
await itemDescriptionInputs.first().fill("Playwright Laptop");
await page.locator('[data-testid^="purchase-item-quantity-"]').first().fill("2");
await page.locator('[data-testid^="purchase-item-unit-price-"]').first().fill("100");
await page.locator('[data-testid^="purchase-item-quantity-"]:visible').first().fill("2");
await page.locator('[data-testid^="purchase-item-unit-price-"]:visible').first().fill("100");
const submitResponsePromise = page.waitForResponse(
(response) =>