恢复付款入口与常开基线(08-01-reimbursement-notification-progress-clarity)
这个提交包含在:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户