#!/usr/bin/env node /** * Mobile guard: real-browser (Chromium AND Firefox, headless) regression suite for published pages. * jsdom has no layout engine, so none of this can be asserted in vitest. * * npm run test:browser:mobile-guard * * Builds three representative documents with the REAL exporter (scripts/e2e-mobile-guard-entry.ts): * components - Navbar with 8 links, hero, ColumnLayout 2/3/4/30-70, FeaturesGrid, Testimonials, * NumberCounter, Gallery, PricingTable, ReviewsStrip, a 1600px image, long word + URL * htmlblocks - customer HtmlBlocks that fit a phone with the net (iframe, img, width:100% table, pre, URL), an * intentional overflow-x:auto table, and probes: sticky bar, absolutely positioned dropdown, * multi-root blocks as direct flex items / grid cells, collapsing margins, an inline run * htmlwide - customer HtmlBlocks wider than a phone (fixed width, px grid, 4x1fr grid,