fix(test): bound the G-328 placement-surface slice at the withdraw gate (the verify-CTA copy is a different, sanctioned surface)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user