curltastic/frontend/screenshot.cjs
eros 86153894ac feat: add Vite TypeScript frontend for curling game
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-06-24 08:18:13 -07:00

10 lines
398 B
JavaScript

const { chromium } = require('playwright')
;(async () => {
const browser = await chromium.launch()
const page = await browser.newPage({ viewport: { width: 390, height: 844 } }) // iPhone-ish
await page.goto('http://localhost:5173/?room=SHOTTEST')
await page.waitForTimeout(3000)
await page.screenshot({ path: '/tmp/curltastic_waiting.png', fullPage: false })
await browser.close()
})()