完善借款、编号、付款与预算并发及验收(09-06-release-gate-integrity)
汇总已落盘的借款本金与还款、兼容历史编号的周期化编号、付款责任与回单核验、报销进度和排序、PWA/采购事务、错误原因与日期校验及ERP退役。 统一共享预算池锁序和锁后判断,恢复差旅原预算选择,补原因码固定夹具及反向完整性检查。 纳入配套迁移、测试、受管QA、分层验收合同、规约及任务记录;原始证据留在ignored artifacts。 关联任务:09-17-company-loan-principal-repayment、09-17-erp-exclusive-retirement、09-18-reimbursement-periodic-numbering、09-08-reimbursement-payment-closeout、09-18-local-concurrency-product-fixes、09-19-budget-pool-concurrency、09-05-error-explainability-payment-readiness。 预算补审由Claude定向验证2文件928项通过,原4446/28及r6结果仍仅对应各自历史输入;本轮未重跑测试。 完整新候选门禁、R1真实入口接入与12项公网义务仍开放。生产编号未启用、差旅仍冻结;不推送、不部署,不宣称发布资格。
这个提交包含在:
@@ -1,4 +1,4 @@
|
||||
import { mkdirSync } from "node:fs";
|
||||
import { mkdirSync, mkdtempSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { expect, test, type Browser, type Page } from "@playwright/test";
|
||||
|
||||
@@ -10,7 +10,9 @@ import {
|
||||
} from "./helpers/auth";
|
||||
|
||||
const ROOT_DIR = path.resolve(process.cwd(), "..");
|
||||
const SCREENSHOT_DIR = path.join(ROOT_DIR, "output/playwright/r109-mobile-feedback");
|
||||
const visualRoot = path.resolve(process.env.QA_VISUAL_OUTPUT_DIR?.trim() || path.join(ROOT_DIR, "output/playwright"));
|
||||
mkdirSync(visualRoot, { recursive: true });
|
||||
const SCREENSHOT_DIR = mkdtempSync(path.join(visualRoot, "r109-"));
|
||||
const WECOM_UA =
|
||||
"Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 wxwork/4.1.20 MicroMessenger/8.0.1 Language/zh_CN";
|
||||
|
||||
@@ -178,16 +180,25 @@ test.describe.serial("R109 企业微信移动报销反馈专项", () => {
|
||||
},
|
||||
]);
|
||||
await employee.page.getByTestId("reimbursement-invoice-upload-submit").click();
|
||||
await expect(employee.page.getByTestId("reimbursement-invoice-upload-submit")).toHaveText("上传发票", {
|
||||
timeout: 20_000,
|
||||
});
|
||||
|
||||
const invoiceDialog = employee.page.getByTestId("reimbursement-invoice-dialog");
|
||||
await expect(invoiceDialog.getByRole("checkbox", { checked: true })).toHaveCount(1, { timeout: 90_000 });
|
||||
const target = invoiceDialog.getByRole("combobox", { name: "添加到哪条明细" });
|
||||
const existingItems = target.locator('option:not([value=""])');
|
||||
await expect(existingItems).toHaveCount(1);
|
||||
await target.selectOption((await existingItems.getAttribute("value"))!);
|
||||
await invoiceDialog.getByRole("button", { name: "添加到报销单 1", exact: true }).click();
|
||||
await expect(invoiceDialog.getByText("已添加 1 张发票", { exact: true })).toBeVisible();
|
||||
await invoiceDialog.getByRole("button", { name: "返回报销单", exact: true }).click();
|
||||
await expect(invoiceDialog).toHaveCount(0);
|
||||
await expect(employee.page.getByTestId("approval-invoice-evidence")).toHaveCount(1);
|
||||
await employee.page.getByTestId("reimbursement-invoice-add").click();
|
||||
await employee.page.getByRole("button", { name: "已有发票" }).click();
|
||||
await expect(employee.page.getByTestId("mobile-reimbursement-invoice-search")).toBeVisible();
|
||||
await employee.page.screenshot({ path: screenshotPath("mobile-invoice-dialog") });
|
||||
|
||||
await employee.page.goto("/mobile/leave?view=form");
|
||||
await expect(employee.page.getByTestId("mobile-leave-form")).toBeVisible();
|
||||
await expect(employee.page.getByTestId("mobile-leave-form")).toHaveCount(0);
|
||||
await expect(employee.page.getByText("日常请假、补卡、外出和加班在企业微信完成;OA 这里只查看记录、额度和历史状态。", { exact: true })).toBeVisible();
|
||||
await employee.page.screenshot({ path: screenshotPath("mobile-leave") });
|
||||
const leaveMetrics = await collectMobileMetrics(employee.page);
|
||||
expect(leaveMetrics.navHeight).toBeLessThanOrEqual(68);
|
||||
|
||||
在新工单中引用
屏蔽一个用户