Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
describe.only('developer.github.com pages', () => {
jest.setTimeout(30 * 60 * 1000)
it('works', async () => {
const urls = require('./top-old-developer-site-paths.json')
.slice(0, 10)
console.log({ urls })
for (const url of urls) {
await page.goto(`http://localhost:4001${url}`)
await page.setViewport({ width:1200, height:300 })
await page.screenshot({ path: path.join(__dirname, `developer-${paramCase(url)}.png`), fullPage: true })
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment