Skip to content

Instantly share code, notes, and snippets.

@zeke
Created June 29, 2020 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeke/f95c0aa7cf0003a3f63288cdcf5d42f6 to your computer and use it in GitHub Desktop.
Save zeke/f95c0aa7cf0003a3f63288cdcf5d42f6 to your computer and use it in GitHub Desktop.
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