← back to Dw Theme Boost Fix
verify/live-gate.mjs
12 lines
import { chromium } from 'playwright';
const b = await chromium.launch();
const p = await b.newPage();
const hits = [];
p.on('response', r => { const u = r.url(); if (u.includes('bc-solutions') || u.includes('mybcapps')) hits.push({ u: u.split('?')[0], s: r.status() }); });
await p.goto('https://www.designerwallcoverings.com/collections/grasscloth-wallpaper-collection', { waitUntil: 'load', timeout: 60000 });
await p.waitForTimeout(12000);
console.log('staging:', hits.filter(h => h.u.includes('staging')).length, '| prod 200s:', hits.filter(h => h.u.includes('mybcapps') && h.s === 200).length);
console.log('facets:', await p.locator('[class*="boost-sd__filter"] li, .boost-sd__filter-option-item').count().catch(() => 0));
console.log('toggle pill:', await p.locator('#dw-page-mode').count());
await b.close();