import { webkit, devices } from "@playwright/test"; const b = await webkit.launch(); const ctx = await b.newContext({ ...devices["iPhone 13"] }); const p = await ctx.newPage(); await p.goto(process.argv[2] ?? "http://127.0.0.1:3100/", { waitUntil: "networkidle" }); await p.getByRole("button", { name: "Ouvrir le menu" }).click(); await p.waitForTimeout(500); await p.screenshot({ path: process.argv[3] ?? "docs/screenshots/menu-mobile-open.png" }); await b.close(); console.log("shot ok");