test(rectification): align staging gate contracts
Independent Staging Quality Gate / validate (push) Successful in 12m25s
Independent Staging Quality Gate / publish (push) Successful in 8m48s

This commit is contained in:
Jesse_Chen
2026-08-15 18:17:51 +08:00
parent 1e7104b45c
commit 2984b6d1d0
3 changed files with 9 additions and 7 deletions
@@ -206,16 +206,18 @@ test("unverified birth time no longer emits a modal or toast gate", () => {
assert.doesNotMatch(page, /role="alertdialog"[\s\S]{0,300}出生时间还没有完成校正/);
});
test("birth time intake starts with two simple choices and keeps rectification optional", () => {
test("birth time intake only accepts one concrete initialization time", () => {
const intake = readFileSync(new URL("../src/components/birth-time-intake.tsx", import.meta.url), "utf8");
const model = readFileSync(new URL("../src/lib/birth-time-intake-model.ts", import.meta.url), "utf8");
assert.match(model, /我知道准确出生时间/);
assert.match(model, /我不确定准确时间/);
assert.match(intake, /请填写你初始化提供的具体出生时间/);
assert.match(intake, /aria-label="选择出生时间"/);
assert.doesNotMatch(model, /我不确定准确时间/);
assert.doesNotMatch(intake, /source === "family_exact" \|\| source === "approximate"/);
assert.match(intake, /请选择最接近的时间范围/);
assert.match(intake, /完全不清楚,跳过出生时间/);
assert.match(intake, /生时校正以后需要时再做/);
assert.doesNotMatch(intake, /请选择最接近的时间范围/);
assert.doesNotMatch(intake, /完全不清楚,跳过出生时间/);
assert.doesNotMatch(intake, /生时校正以后需要时再做/);
});
test("homepage and profile result copy use the source-aware consultation options", () => {
@@ -1023,8 +1023,8 @@ test("v9 agent api migration applies, seeds the runtime flag and guards consent"
assert.equal(receiptRow.skill_version, "9.0.0");
assert.equal(receiptRow.engine_version, "fixture-engine");
assert.deepEqual(receiptRow.tools, [
"rectification-compare-candidates",
"rectification-read-case",
"rectification-compare-candidates",
]);
assert.deepEqual(receiptRow.methods, [
"d1-rashi",