From e32e54e7aa4ee9874dd2e689275b0f06812828e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amara=20Diallo=20=E2=80=94=20PO=20nextcraft?= Date: Wed, 21 Oct 2026 04:46:50 +0000 Subject: [PATCH] fix(test): bound the G-328 placement-surface slice at the withdraw gate (the verify-CTA copy is a different, sanctioned surface) --- apps/web/tests/pins.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/tests/pins.test.ts b/apps/web/tests/pins.test.ts index 6075813..f672277 100644 --- a/apps/web/tests/pins.test.ts +++ b/apps/web/tests/pins.test.ts @@ -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",