恢复付款入口与常开基线(08-01-reimbursement-notification-progress-clarity)
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-08-01 23:12:23 +08:00
父节点 aa6b9bc373
当前提交 37b4ef2d10
共修改 20 个文件,包含 655 行新增和 244 行删除
@@ -104,4 +104,23 @@ describe("deployment safety contract", () => {
expect(external).not.toContain("from=${config.emailFrom}");
expect(runtime).not.toContain("${adminEmployee.employee_no}");
});
it("keeps the formal payment batch baseline enabled and restores QA caller state", async () => {
const envExample = await require("node:fs/promises").readFile(path.join(ROOT_DIR, "deploy/trialrun/.env.example"), "utf8");
const runtime = await require("node:fs/promises").readFile(path.join(ROOT_DIR, "server/src/scripts/smoke-trialrun-runtime.js"), "utf8");
const shortWindow = await require("node:fs/promises").readFile(path.join(ROOT_DIR, "scripts/qa/run-p2-fin-live-window.sh"), "utf8");
const enableWindow = await require("node:fs/promises").readFile(path.join(ROOT_DIR, "scripts/qa/run-fin-prod-enable-window.sh"), "utf8");
const liveSpec = await require("node:fs/promises").readFile(path.join(ROOT_DIR, "client/tests/e2e/manual/p2-fin-live-payment-batch.spec.ts"), "utf8");
expect(envExample).toMatch(/^PAYMENT_BATCH_ENABLED=true$/m);
expect(runtime).toContain("PAYMENT_BATCH_ENABLED: 'true'");
expect(runtime).toContain("FEATURE_FLAG_KEYS.paymentBatch");
expect(shortWindow).toContain("restore-caller-flag-snapshot");
expect(shortWindow).toContain("P2_FIN_LIVE_ALREADY_ON='$ALREADY_ON_MODE'");
expect(enableWindow).toContain("restore-caller-flag-snapshot");
expect(liveSpec).toContain("restoreFlagSnapshot");
expect(liveSpec).not.toContain("forcePaymentBatchOff");
expect(shortWindow).not.toContain("force_payment_batch_flag_off");
expect(enableWindow).not.toContain("force_payment_batch_flag_off");
});
});