[object Object]

← back to Designer Wallcoverings

auto-save: 2026-06-30T09:39:21 (3 files) — pending-approval/boost-filter-consolidation-2026-06-25 vendor-scrapers/china-seas-refresh shot.mjs

1533985144f5e2fed6846b5800e5a3bae8cb34ba · 2026-06-30 09:39:26 -0700 · Steve Abrams

Files touched

Diff

commit 1533985144f5e2fed6846b5800e5a3bae8cb34ba
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue Jun 30 09:39:26 2026 -0700

    auto-save: 2026-06-30T09:39:21 (3 files) — pending-approval/boost-filter-consolidation-2026-06-25 vendor-scrapers/china-seas-refresh shot.mjs
---
 shot.mjs | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/shot.mjs b/shot.mjs
new file mode 100644
index 00000000..63a8827a
--- /dev/null
+++ b/shot.mjs
@@ -0,0 +1,19 @@
+import { chromium } from 'playwright';
+const b = await chromium.launch();
+const p = await b.newPage({ viewport: { width: 1400, height: 1000 } });
+const errs = [];
+p.on('console', m => { if (m.type()==='error') errs.push(m.text()); });
+p.on('pageerror', e => errs.push('PAGEERR '+e.message));
+await p.goto('http://localhost:9941/', { waitUntil: 'networkidle' });
+await p.waitForTimeout(1200);
+const cards = await p.$$eval('.card', els => els.length);
+const swatches = await p.$$eval('#colorRow .swatch', els => els.length);
+const styleChips = await p.$$eval('#styleRow .chip', els => els.length);
+// click the Botanical style chip, verify grid re-filters
+const before = await p.$$eval('.card', e=>e.length);
+const chip = await p.$$('#styleRow .chip');
+let afterTxt='(no style chips)';
+if (chip.length){ await chip[0].click(); await p.waitForTimeout(800); const after = await p.$$eval('.card', e=>e.length); const active = await p.$$eval('#activeRow .afilter', e=>e.length); afterTxt = `cards ${before}->${after}, activeChips ${active}`; }
+await p.screenshot({ path: '/tmp/japan-viewer.png', fullPage: false });
+console.log(JSON.stringify({ cards, swatches, styleChips, filterTest: afterTxt, consoleErrors: errs }, null, 2));
+await b.close();

← 4af735f6 China Seas reconcile (DTD-A): source china_seas_catalog 106  ·  back to Designer Wallcoverings  ·  auto-save: 2026-06-30T10:09:30 (5 files) — pending-approval/ ce63fbf3 →