Files
wehub-resource-sync e4dcfc49aa
Tests / Lint and Format (push) Waiting to run
Tests / Web Node Tests (push) Waiting to run
Tests / Import Check (Python 3.11) (push) Waiting to run
Tests / Import Check (Python 3.12) (push) Waiting to run
Tests / Import Check (Python 3.13) (push) Waiting to run
Tests / Import Check (Python 3.14) (push) Waiting to run
Tests / Python Tests (Python 3.11) (push) Blocked by required conditions
Tests / Python Tests (Python 3.12) (push) Blocked by required conditions
Tests / Python Tests (Python 3.13) (push) Blocked by required conditions
Tests / Python Tests (Python 3.14) (push) Blocked by required conditions
Tests / Test Summary (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

23 lines
643 B
JavaScript

import { chromium } from "playwright";
const URL = "http://localhost:3784/home";
const VW = 1440;
const VH = 900;
const browser = await chromium.launch();
const page = await browser.newPage({
viewport: { width: VW, height: VH },
deviceScaleFactor: 2,
});
await page.goto(URL, { waitUntil: "networkidle" });
await page.waitForTimeout(1500);
// Rightmost 70 CSS px, full height — any right-edge shadow shows as a
// darkening gradient in this narrow strip.
await page.screenshot({
path: "/tmp/right-strip.png",
clip: { x: VW - 70, y: 0, width: 70, height: VH },
});
console.log("saved /tmp/right-strip.png");
await browser.close();