Guides (Marty 2026-11-17, evergreen pages instead of a blog): /guides index, How ViralAdBlitz works, Is ViralAdBlitz legit? (VABShop 0xb584...2905 verified on Polygonscan, 10% x 5 levels to the first 5 Boost buyers within 20 places + 50% company, checked against the source and the live chain), Getting the most from your free account, FAQ (from the chatbot answers, FAQPage data); nav + footer links, sitemap, /faq -> /guides/faq, guides/faq reserved names, chatbot f-guides entry + fact; smoke 11 checks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:26:46 -06:00
parent e0adc62c31
commit 2fee105ad8
10 changed files with 333 additions and 7 deletions
+14 -1
View File
@@ -207,6 +207,19 @@ async function main() {
&& (how.match(/<details>/g) || []).length >= 5 && /PASSED OVER/.test(how) && /A Boost buys advertising, not income\. Nothing is promised\./.test(how) && /SafePal or any other crypto wallet/.test(how) && !/[—–]/.test(how) && /"@type":"FAQPage"/.test(how), 'How it works page: 3 accessible diagrams, 4 sections, FAQ, pass-up shown, copy rules', how.length);
ok(/href="\/how#boost">How a Boost works</.test(home) && /href="\/how"/.test(home) && /'\/how', 'How it works'/.test(fs.readFileSync(path.join(APP, 'public/assets/common.js'), 'utf8')) && /<a href="\/how">How it works<\/a>/.test(fs.readFileSync(path.join(APP, 'public/assets/common.js'), 'utf8')), 'How it works linked from the nav, the footer and the front page ("How a Boost works")');
ok((await (await anon.req('/sitemap.xml')).text()).includes('/how</loc>'), 'sitemap lists /how');
{ // Guides (Marty 2026-11-17): index + 4 evergreen pages, canonical/OG, linked from nav + footer, in the sitemap, no dashes, the house lines
const sm = await (await anon.req('/sitemap.xml')).text(); const cjs = fs.readFileSync(path.join(APP, 'public/assets/common.js'), 'utf8');
for (const g of ['/guides', '/guides/how-it-works', '/guides/is-it-legit', '/guides/free-account', '/guides/faq']) {
const gr = await anon.req(g); const t = await gr.text();
ok(gr.status === 200 && t.includes('<link rel="canonical" href="https://viraladblitz.com' + g + '">') && t.includes('og:url" content="https://viraladblitz.com' + g + '"') && /<meta name="description" content="[^"]{60,}">/.test(t)
&& !/[\u2014\u2013]|[^-!]--[^>]/.test(t) && !/RM Circle/i.test(t) && /A Boost buys advertising, not income\./.test(t) && t.includes('/assets/guides.js') && sm.includes(g + '</loc>'), 'guide ' + g + ': 200, canonical, OG, description, house lines, in the sitemap');
}
const legit = await (await anon.req('/guides/is-it-legit')).text();
ok(legit.includes('0xb58447b0CE9a38Ad0e7d41a074FEbee696452905') && legit.includes('polygonscan.com/address/0xb58447b0CE9a38Ad0e7d41a074FEbee696452905#code') && /LEVEL 5<\/span><b>10%/.test(legit) && /COMPANY<\/span><b>50%/.test(legit) && legit.includes('href="/ledger"'), 'Is it legit guide: contract address, Polygonscan code link, 10% x 5 + 50% split, ledger link');
ok(/"@type":"FAQPage"/.test(await (await anon.req('/guides/faq')).text()), 'FAQ guide carries FAQPage data');
ok(/\['\/guides', 'Guides'\]/.test(cjs) && /<a href="\/guides">Guides<\/a>/.test(cjs), 'Guides in the nav and the footer');
const fq = await anon.req('/faq', { redirect: 'manual' }); ok(fq.status === 301 && fq.headers.get('location') === '/guides/faq', '/faq redirects to /guides/faq', fq.status);
}
ok(!r.headers.get('x-frame-options'), 'front page stays frameable (traffic exchanges)');
r = await anon.req('/my'); ok(r.headers.get('x-frame-options') === 'DENY', '/my is never framed');
ok(/script-src[^;]*https:\/\/linkspin\.app/.test(r.headers.get('content-security-policy') || ''), 'CSP admits linkspin.app (network zones)');
@@ -505,7 +518,7 @@ const mtop = await anon.json('/api/wire?page=member&u=topdog');
// nothing leaves this machine; UI_FONTS=1 lets Google Fonts through so the screenshots show the real type (read-only font GETs)
await ctx.route(/^https:\/\//, rt => (process.env.UI_FONTS && /^https:\/\/fonts\.(googleapis|gstatic)\.com\//.test(rt.request().url())) ? rt.continue() : rt.abort());
const errs = []; const pg = await ctx.newPage(); pg.on('pageerror', e => errs.push(e.message));
for (const [p, sel] of [['/', '#boardCards .paper'], ['/how', '.dg svg[role=img]'], ['/owner', '#levels .lvl'], ['/boost', '#bQty option'], ['/ledger', '#rows tbody tr'], ['/contract', '#facts th'], ['/promote', '#kit .card'], ['/terms', '.legal .card'], ['/disclaimer', '.legal .card'], ['/privacy', '.legal .card']]) {
for (const [p, sel] of [['/', '#boardCards .paper'], ['/how', '.dg svg[role=img]'], ['/owner', '#levels .lvl'], ['/boost', '#bQty option'], ['/ledger', '#rows tbody tr'], ['/contract', '#facts th'], ['/promote', '#kit .card'], ['/terms', '.legal .card'], ['/disclaimer', '.legal .card'], ['/privacy', '.legal .card'], ['/guides', '.guides .card']]) {
await pg.goto(BASE + p, { waitUntil: 'domcontentloaded' }); await pg.waitForSelector(sel, { timeout: 8000 }).catch(() => {});
const found = await pg.$$eval(sel, els => els.length);
const wide = await pg.evaluate(() => document.documentElement.scrollWidth - window.innerWidth);