fix(test): bound the G-328 placement-surface slice at the withdraw gate (the verify-CTA copy is a different, sanctioned surface)
CI / node (push) Successful in 40s
Release / release (push) Successful in 2m57s
CI / python (push) Successful in 4m3s

This commit is contained in:
2026-10-21 04:46:50 +00:00
parent 6b451d4de7
commit e32e54e7aa
+4 -1
View File
@@ -929,7 +929,10 @@ test("pin: A-304 badge honesty — no placement badge on the mock talent surface
/appStatus\.placement &&/.test(jobDetail),
"the placement confirmation renders only on the learner's-own application surface",
);
const placementBlock = jobDetail.slice(jobDetail.indexOf("appStatus.placement &&"));
const placementBlock = jobDetail.slice(
jobDetail.indexOf("appStatus.placement &&"),
jobDetail.indexOf("{WITHDRAWABLE_STATUSES.has("),
);
assert.ok(
/Placement recorded/.test(placementBlock),
"G-328: the placement copy says RECORDED",