qa/chain: page check matches any common.js?v= tag (was pinned to v=5, so the five legal/contract page checks failed after the zones bump; the pages have no em dashes)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-14 17:05:08 -06:00
parent cab68c01dd
commit 909f4373d8
+1 -1
View File
@@ -150,7 +150,7 @@ async function main() {
&& cf.paused === false && cf.orderCount === 2 && cf.balanceWei === '0' && cf.split.sponsorPct === 30 && cf.split.prizePct === 10 && cf.split.companyPct === 60 && cf.verified.sourcify === true,
'/api/contract reads the live facts (owner, prize wallet, company, keeper, 2 orders, holds 0)', cf);
for (const pg of ['/contract', '/ledger', '/terms', '/disclaimer', '/privacy']) { const r2 = await fetch(BASE + pg); const h = await r2.text();
ok(r2.status === 200 && h.includes('common.js?v=5') && !h.includes('—'), pg + ' serves (no em dashes)'); }
ok(r2.status === 200 && /common\.js\?v=\d+/.test(h) && !h.includes('—'), pg + ' serves (no em dashes)'); }
const legal = (await (await fetch(BASE + '/terms')).text()) + (await (await fetch(BASE + '/disclaimer')).text()) + (await (await fetch(BASE + '/privacy')).text());
ok(legal.includes('TrustClickz, 615 Green Valley Drive, Moody, AL 35004') && /ever billed again/.test(legal) && /final once confirmed/.test(legal) && /not an investment/.test(legal) && /network hub/.test(legal) && !/\$50|cap/i.test(legal.replace(/capture|capital|escape/gi, '')),
'legal pages: TrustClickz, one-time purchases, no refunds on-chain, not an investment, the hub, no prize cap');